Enum Class Construct
- All Implemented Interfaces:
Serializable,Comparable<Construct>,Constable
A construct the model classifies wherever it occurs, so that its treatment in
generated code is reported rather than discovered.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionadditionalProperties, in any of its forms.anyOfwith at least one anonymous, inline branch.anyOfwhose branches are all references to components.A schema written as the literaltrueorfalse.discriminator.typenaming more than one type, such as[string, 'null'].oneOfwith at least one anonymous, inline branch.oneOfwhose branches are all references to components.patternProperties.A$refthat closes a cycle of components.A component of a type the model does not type -- anything but schemas, responses, parameters and request bodies -- kept as a raw value.A schema keyword the model does not type, kept as a raw value. -
Method Summary
Modifier and TypeMethodDescriptionremedy()What a specification author can do so the construct is represented in full.How generated code treats this construct.static ConstructReturns the enum constant of this class with the specified name.static Construct[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONE_OF_REF_BRANCHES
oneOfwhose branches are all references to components. -
ONE_OF_INLINE_BRANCHES
oneOfwith at least one anonymous, inline branch. -
ANY_OF_REF_BRANCHES
anyOfwhose branches are all references to components. -
ANY_OF_INLINE_BRANCHES
anyOfwith at least one anonymous, inline branch. -
DISCRIMINATOR
discriminator. -
ADDITIONAL_PROPERTIES
additionalProperties, in any of its forms. -
PATTERN_PROPERTIES
patternProperties. -
RECURSIVE_REF
A$refthat closes a cycle of components. -
MULTIPLE_TYPES
typenaming more than one type, such as[string, 'null']. -
BOOLEAN_SCHEMA
A schema written as the literaltrueorfalse. -
UNMODELLED_KEYWORD
A schema keyword the model does not type, kept as a raw value. -
UNMODELLED_COMPONENT_TYPE
A component of a type the model does not type -- anything but schemas, responses, parameters and request bodies -- kept as a raw value.
-
-
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
-
treatment
How generated code treats this construct.- Returns:
- the treatment
-
remedy
What a specification author can do so the construct is represented in full.- Returns:
- the remedy, or
nullwhen there is nothing to remedy
-