Package io.zerocopy.json.schema
Enum JsonSchemaV7.Format
- java.lang.Object
-
- java.lang.Enum<JsonSchemaV7.Format>
-
- io.zerocopy.json.schema.JsonSchemaV7.Format
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JsonSchemaV7.Format>
- Enclosing class:
- JsonSchemaV7
public static enum JsonSchemaV7.Format extends java.lang.Enum<JsonSchemaV7.Format>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATEDATE_TIMEEMAILHOSTNAMEIDN_EMAILIDN_HOSTNAMEIPV4IPV6IRIIRI_REFERENCEJSON_POINTERREGEXRELATIVE_JSON_POINTERTIMEURIURI_REFERENCEURI_TEMPLATE
-
Field Summary
Fields Modifier and Type Field Description DateTimeConverterdateTimeConverterjava.util.regex.Patternpatternjava.lang.Stringvalue
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonSchemaV7.FormatforValue(java.lang.String value)static JsonSchemaV7.FormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JsonSchemaV7.Format[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATE_TIME
public static final JsonSchemaV7.Format DATE_TIME
-
DATE
public static final JsonSchemaV7.Format DATE
-
TIME
public static final JsonSchemaV7.Format TIME
-
URI
public static final JsonSchemaV7.Format URI
-
URI_REFERENCE
public static final JsonSchemaV7.Format URI_REFERENCE
-
URI_TEMPLATE
public static final JsonSchemaV7.Format URI_TEMPLATE
-
IRI
public static final JsonSchemaV7.Format IRI
-
IRI_REFERENCE
public static final JsonSchemaV7.Format IRI_REFERENCE
-
EMAIL
public static final JsonSchemaV7.Format EMAIL
-
IDN_EMAIL
public static final JsonSchemaV7.Format IDN_EMAIL
-
HOSTNAME
public static final JsonSchemaV7.Format HOSTNAME
-
IDN_HOSTNAME
public static final JsonSchemaV7.Format IDN_HOSTNAME
-
IPV4
public static final JsonSchemaV7.Format IPV4
-
IPV6
public static final JsonSchemaV7.Format IPV6
-
REGEX
public static final JsonSchemaV7.Format REGEX
-
JSON_POINTER
public static final JsonSchemaV7.Format JSON_POINTER
-
RELATIVE_JSON_POINTER
public static final JsonSchemaV7.Format RELATIVE_JSON_POINTER
-
-
Field Detail
-
value
public final java.lang.String value
-
dateTimeConverter
public final DateTimeConverter dateTimeConverter
-
pattern
public final java.util.regex.Pattern pattern
-
-
Method Detail
-
values
public static JsonSchemaV7.Format[] 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 (JsonSchemaV7.Format c : JsonSchemaV7.Format.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonSchemaV7.Format 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
-
forValue
public static JsonSchemaV7.Format forValue(java.lang.String value)
-
-