public enum JsonValueFormat extends Enum<JsonValueFormat>
Enum Constant and Description |
---|
COLOR
This is a CSS color (like "#FF0000" or "red"), based on CSS
2.1 [W3C.CR-CSS21-20070719].
|
DATE
This SHOULD be a date in the format of YYYY-MM-DD.
|
DATE_TIME
This SHOULD be a date in ISO 8601 format of YYYY-MM-
DDThh:mm:ssZ in UTC time.
|
EMAIL
This SHOULD be an email address.
|
HOST_NAME
This SHOULD be a host-name.
|
IP_ADDRESS
This SHOULD be an ip version 4 address.
|
IPV6
This SHOULD be an ip version 6 address.
|
PHONE
This SHOULD be a phone number (format MAY follow E.123).
|
REGEX
A regular expression, following the regular expression
specification from ECMA 262/Perl 5.
|
STYLE
This is a CSS style definition (like "color: red; background-
color:#FFF"), based on CSS 2.1 [W3C.CR-CSS21-20070719].
|
TIME
This SHOULD be a time in the format of hh:mm:ss.
|
URI
This value SHOULD be a URI.
|
UTC_MILLISEC
This SHOULD be the difference, measured in
milliseconds, between the specified time and midnight, 00:00 of
January 1, 1970 UTC.
|
UUID
Value should be valid UUID
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static JsonValueFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonValueFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonValueFormat COLOR
public static final JsonValueFormat DATE
public static final JsonValueFormat DATE_TIME
public static final JsonValueFormat EMAIL
public static final JsonValueFormat HOST_NAME
public static final JsonValueFormat IP_ADDRESS
public static final JsonValueFormat IPV6
public static final JsonValueFormat PHONE
public static final JsonValueFormat REGEX
public static final JsonValueFormat STYLE
public static final JsonValueFormat TIME
public static final JsonValueFormat URI
public static final JsonValueFormat UTC_MILLISEC
public static final JsonValueFormat UUID
public static JsonValueFormat[] values()
for (JsonValueFormat c : JsonValueFormat.values()) System.out.println(c);
public static JsonValueFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<JsonValueFormat>
Copyright © 2008–2023 FasterXML. All rights reserved.