Class CustomPropertyDefinition
- java.lang.Object
-
- com.github.victools.jsonschema.generator.CustomDefinition
-
- com.github.victools.jsonschema.generator.CustomPropertyDefinition
-
public final class CustomPropertyDefinition extends CustomDefinition
The result of a custom definition look-up for a particular field/method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.victools.jsonschema.generator.CustomDefinition
CustomDefinition.AttributeInclusion, CustomDefinition.DefinitionType
-
-
Field Summary
-
Fields inherited from class com.github.victools.jsonschema.generator.CustomDefinition
EXCLUDING_ATTRIBUTES, INCLUDING_ATTRIBUTES, INLINE_DEFINITION
-
-
Constructor Summary
Constructors Constructor Description CustomPropertyDefinition(com.fasterxml.jackson.databind.node.ObjectNode value)
Constructor for a custom property definition.CustomPropertyDefinition(com.fasterxml.jackson.databind.node.ObjectNode value, CustomDefinition.AttributeInclusion attributeInclusion)
Constructor for a custom property definition.
-
Method Summary
-
Methods inherited from class com.github.victools.jsonschema.generator.CustomDefinition
getAttributeInclusion, getDefinitionType, getValue, isMeantToBeInline, shouldAlwaysProduceDefinition, shouldIncludeAttributes
-
-
-
-
Constructor Detail
-
CustomPropertyDefinition
public CustomPropertyDefinition(com.fasterxml.jackson.databind.node.ObjectNode value)
Constructor for a custom property definition.
This is equivalent to callingnew CustomPropertyDefinition(value, CustomDefinition.AttributeInclusion.YES)
- Parameters:
value
- generated custom definition
-
CustomPropertyDefinition
public CustomPropertyDefinition(com.fasterxml.jackson.databind.node.ObjectNode value, CustomDefinition.AttributeInclusion attributeInclusion)
Constructor for a custom property definition.- Parameters:
value
- generated custom definitionattributeInclusion
- whether additional attributes should be applied on top of this custom definition
-
-