Package com.networknt.schema
Enum SpecificationVersionRange
- java.lang.Object
-
- java.lang.Enum<SpecificationVersionRange>
-
- com.networknt.schema.SpecificationVersionRange
-
- All Implemented Interfaces:
Serializable,Comparable<SpecificationVersionRange>
public enum SpecificationVersionRange extends Enum<SpecificationVersionRange>
SpecificationVersionRange.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_VERSIONSDRAFT_2019_09DRAFT_6_TO_DRAFT_7DRAFT_7MAX_DRAFT_2019_09MAX_DRAFT_7MIN_DRAFT_2019_09MIN_DRAFT_2020_12MIN_DRAFT_6MIN_DRAFT_7NONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumSet<SpecificationVersion>getVersions()static SpecificationVersionRangevalueOf(String name)Returns the enum constant of this type with the specified name.static SpecificationVersionRange[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SpecificationVersionRange NONE
-
ALL_VERSIONS
public static final SpecificationVersionRange ALL_VERSIONS
-
MIN_DRAFT_6
public static final SpecificationVersionRange MIN_DRAFT_6
-
DRAFT_6_TO_DRAFT_7
public static final SpecificationVersionRange DRAFT_6_TO_DRAFT_7
-
MIN_DRAFT_7
public static final SpecificationVersionRange MIN_DRAFT_7
-
MAX_DRAFT_7
public static final SpecificationVersionRange MAX_DRAFT_7
-
MAX_DRAFT_2019_09
public static final SpecificationVersionRange MAX_DRAFT_2019_09
-
MIN_DRAFT_2019_09
public static final SpecificationVersionRange MIN_DRAFT_2019_09
-
MIN_DRAFT_2020_12
public static final SpecificationVersionRange MIN_DRAFT_2020_12
-
DRAFT_2019_09
public static final SpecificationVersionRange DRAFT_2019_09
-
DRAFT_7
public static final SpecificationVersionRange DRAFT_7
-
-
Method Detail
-
values
public static SpecificationVersionRange[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpecificationVersionRange c : SpecificationVersionRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpecificationVersionRange valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getVersions
public EnumSet<SpecificationVersion> getVersions()
-
-