Class CustomDefinition
- java.lang.Object
-
- com.github.victools.jsonschema.generator.CustomDefinition
-
public class CustomDefinition extends Object
The result of a custom definition look-up.
-
-
Constructor Summary
Constructors Constructor Description CustomDefinition(com.fasterxml.jackson.databind.node.ObjectNode value)
Constructor for a custom definition that should follow the standard behaviour in regards to be inlined or mentioned in the "definitions".CustomDefinition(com.fasterxml.jackson.databind.node.ObjectNode value, boolean meantToBeInline)
Constructor for a custom definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.node.ObjectNode
getValue()
Getter for the actual custom definition.boolean
isMeantToBeInline()
Getter for the flag indicating whether this custom definition should be inlined even if it occurs multiple times.
-
-
-
Constructor Detail
-
CustomDefinition
public CustomDefinition(com.fasterxml.jackson.databind.node.ObjectNode value)
Constructor for a custom definition that should follow the standard behaviour in regards to be inlined or mentioned in the "definitions".- Parameters:
value
- generated custom definition
-
CustomDefinition
public CustomDefinition(com.fasterxml.jackson.databind.node.ObjectNode value, boolean meantToBeInline)
Constructor for a custom definition.- Parameters:
value
- generated custom definitionmeantToBeInline
- whether the definition should be inlined even if it occurs multiple times; otherwise applying standard behaviour
-
-
Method Detail
-
getValue
public com.fasterxml.jackson.databind.node.ObjectNode getValue()
Getter for the actual custom definition.- Returns:
- node containing the custom definition
-
isMeantToBeInline
public boolean isMeantToBeInline()
Getter for the flag indicating whether this custom definition should be inlined even if it occurs multiple times.- Returns:
- whether this custom definition should be inlined even if it occurs multiple times
-
-