Enum Class CustomDefinition.DefinitionType
java.lang.Object
java.lang.Enum<CustomDefinition.DefinitionType>
com.github.victools.jsonschema.generator.CustomDefinition.DefinitionType
- All Implemented Interfaces:
Serializable,Comparable<CustomDefinition.DefinitionType>,Constable
- Enclosing class:
- CustomDefinition
Indication whether a custom definition should always be inlined or follow the standard behaviour.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways include this entry in theSchemaKeyword.TAG_DEFINITIONSeven if it is just referenced once.Always inline an associated custom definition (with the potential risk of creating infinite loops).Follow the standard behaviour of being moved into theSchemaKeyword.TAG_DEFINITIONSif it is being referenced multiple times orOption.DEFINITIONS_FOR_ALL_OBJECTSis enabled. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CustomDefinition.DefinitionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INLINE
Always inline an associated custom definition (with the potential risk of creating infinite loops). -
STANDARD
Follow the standard behaviour of being moved into theSchemaKeyword.TAG_DEFINITIONSif it is being referenced multiple times orOption.DEFINITIONS_FOR_ALL_OBJECTSis enabled. UnlessOption.INLINE_ALL_SCHEMASis enabled, forcing this to be inlined. -
ALWAYS_REF
Always include this entry in theSchemaKeyword.TAG_DEFINITIONSeven if it is just referenced once. This bypasses evenOption.INLINE_ALL_SCHEMAS.- Since:
- 4.27.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-