Package io.micronaut.jsonschema.model
Enum Class Schema.Type
- All Implemented Interfaces:
Serializable
,Comparable<Schema.Type>
,Constable
- Enclosing class:
- Schema
The type of schema exactly matching a primitive JSON type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn ordered list of instances.A "true" or "false" value.An integer.A JSON "null" value.An arbitrary-precision, base-10 decimal number value.An unordered set of properties mapping a string to an instance.A string of Unicode code points. -
Method Summary
Modifier and TypeMethodDescriptionstatic Schema.Type
Returns the enum constant of this class with the specified name.static Schema.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARRAY
An ordered list of instances. -
BOOLEAN
A "true" or "false" value. -
NULL
A JSON "null" value. -
INTEGER
An integer. -
NUMBER
An arbitrary-precision, base-10 decimal number value. -
OBJECT
An unordered set of properties mapping a string to an instance. -
STRING
A string of Unicode code points.
-
-
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
-