Enum Class Dialect
- All Implemented Interfaces:
Serializable, Comparable<Dialect>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJSON Schema 2019-09.JSON Schema 2020-12.JSON Schema draft-04.JSON Schema draft-06.JSON Schema draft-07. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable DialectfromMetaSchemaUri(String uri) Resolves a dialect from the value of a$schemakeyword.Returns the meta-schema URI.static DialectReturns the enum constant of this class with the specified name.static Dialect[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRAFT_4
JSON Schema draft-04. -
DRAFT_6
JSON Schema draft-06. -
DRAFT_7
JSON Schema draft-07. -
DRAFT_2019_09
JSON Schema 2019-09. -
DRAFT_2020_12
JSON Schema 2020-12.
-
-
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
-
getMetaSchemaUri
Returns the meta-schema URI.- Returns:
- The URI of the dialect's meta-schema
-
fromMetaSchemaUri
-