Package org.everit.json.schema.loader
Enum SpecificationVersion
- java.lang.Object
-
- java.lang.Enum<SpecificationVersion>
-
- org.everit.json.schema.loader.SpecificationVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SpecificationVersion>
,java.lang.constant.Constable
public enum SpecificationVersion extends java.lang.Enum<SpecificationVersion>
- Author:
- erosb
-
-
Method Summary
Modifier and Type Method Description abstract java.lang.String
idKeyword()
boolean
isAtLeast(SpecificationVersion lowerInclusiveBound)
static java.util.Optional<SpecificationVersion>
lookupByMetaSchemaUrl(java.lang.String metaSchemaUrl)
static SpecificationVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SpecificationVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DRAFT_4
public static final SpecificationVersion DRAFT_4
-
DRAFT_6
public static final SpecificationVersion DRAFT_6
-
DRAFT_7
public static final SpecificationVersion DRAFT_7
-
-
Method Detail
-
values
public static SpecificationVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpecificationVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
lookupByMetaSchemaUrl
public static java.util.Optional<SpecificationVersion> lookupByMetaSchemaUrl(java.lang.String metaSchemaUrl)
-
idKeyword
public abstract java.lang.String idKeyword()
-
isAtLeast
public boolean isAtLeast(SpecificationVersion lowerInclusiveBound)
-
-