Class Constants
- java.lang.Object
-
- org.forgerock.json.schema.validator.Constants
-
public final class Constants extends Object
Constants is the collection of all constant values used by the object validator implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADDITIONALITEMS
TheadditionalItems
field name.static String
ADDITIONALPROPERTIES
TheadditionalProperties
field name.static String
DEFAULT
Thedefault
field name.static String
DEFINITIONS
Thedefinitions
field name.static String
DEPENDENCIES
Thedependencies
field name.static String
DESCRIPTION
Thetype
field name.static String
DISALLOW
Deprecated.removed in JSON schema draft 04static String
DIVISIBLEBY
Deprecated.renamed to multipleOf in JSON schema draft 04static String
ENUM
Theenum
field name.static String
ERROR_MSG_
{}static String
ERROR_MSG_ADDITIONAL_PROPERTIES
Value has additional properties.static String
ERROR_MSG_ENUM_VIOLATION
Value at {} does not have a value in the enumeration.static String
ERROR_MSG_NULL_TYPE
Value at {} MUST be null.static String
ERROR_MSG_REQUIRED_PROPERTY
Required property violation at {}.static String
ERROR_MSG_TYPE_MISMATCH
Type mismatch.static String
EXCLUSIVEMAXIMUM
TheexclusiveMaximum
field name.static String
EXCLUSIVEMINIMUM
TheexclusiveMinimum
field name.static String
EXTENDS
Deprecated.removed in JSON schema draft 04static String
FORMAT
Theformat
field name.static String
FORMAT_COLOR
color This is a CSS color (like "#FF0000" or "red"), based on CSS 2.1 [W3C.CR-CSS21-20070719].static String
FORMAT_DATE
date This SHOULD be a date in the format of YYYY-MM-DD.static String
FORMAT_DATE_TIME
date-time This SHOULD be a date in ISO 8601 format of YYYY-MM- DDThh:mm:ssZ in UTC time.static String
FORMAT_EMAIL
email This SHOULD be an email address.static String
FORMAT_HOST_NAME
host-name This SHOULD be a host-name.static String
FORMAT_IP_ADDRESS
ip-address This SHOULD be an ip version 4 address.static String
FORMAT_IPV6
ipv6 This SHOULD be an ip version 6 address.static String
FORMAT_PHONE
phone This SHOULD be a phone number (format MAY follow E.123).static String
FORMAT_REGEX
regex A regular expression, following the regular expression specification from ECMA 262/Perl 5.static String
FORMAT_STYLE
style This is a CSS style definition (like "color: red; background- color:#FFF"), based on CSS 2.1 [W3C.CR-CSS21-20070719].static String
FORMAT_TIME
time This SHOULD be a time in the format of hh:mm:ss.static String
FORMAT_URI
uri This value SHOULD be a URI.static String
FORMAT_UTC_MILLISEC
utc-millisec This SHOULD be the difference, measured in milliseconds, between the specified time and midnight, 00:00 of January 1, 1970 UTC.static String
ID
Theid
field name.static String
ITEMS
Theitems
field name.static URI
JSON_HYPER_SCHEMA
The hyper schema latest draft URI.static URI
JSON_HYPER_SCHEMA_DRAFT03
The hyper schema draft 03 URI.static URI
JSON_HYPER_SCHEMA_DRAFT04
The hyper schema draft 04 URI.static URI
JSON_LINKS
The schema links latest draft URI.static URI
JSON_LINKS_DRAFT03
The schema links draft 03 URI.static URI
JSON_LINKS_DRAFT04
The schema links draft 04 URI.static URI
JSON_SCHEMA
The schema latest draft URI.static URI
JSON_SCHEMA_DRAFT03
The schema draft 03 URI.static URI
JSON_SCHEMA_DRAFT04
The schema draft 04 URI.static String
MAXIMUM
Themaximum
field name.static String
MAXITEMS
ThemaxItems
field name.static String
MAXLENGTH
ThemaxLength
field name.static String
MINIMUM
Theminimum
field name.static String
MINITEMS
TheminItems
field name.static String
MINLENGTH
TheminLength
field name.static String
MULTIPLEOF
ThemultipleOf
field name.static String
ONEOF
TheoneOf
field name.static String
PATTERN
Thepattern
field name.static String
PATTERNPROPERTIES
ThepatternProperties
field name.static String
PROPERTIES
Theproperties
field name.static String
REF
The$ref
field name.static String
REQUIRED
Therequired
field name.static String
SCHEMA
The$schema
field name.static String
TITLE
Thetype
field name.static String
TYPE
Thetype
field name.static String
TYPE_ANY
Deprecated.removed in JSON schema draft 04static String
TYPE_ARRAY
The array type.static String
TYPE_BOOLEAN
The boolean type.static String
TYPE_INTEGER
The integer type.static String
TYPE_NULL
The null type.static String
TYPE_NUMBER
The number type.static String
TYPE_OBJECT
The object type.static String
TYPE_STRING
The string type.static String
UNIQUEITEMS
TheuniqueItems
field name.
-
-
-
Field Detail
-
JSON_SCHEMA_DRAFT03
public static final URI JSON_SCHEMA_DRAFT03
The schema draft 03 URI.
-
JSON_HYPER_SCHEMA_DRAFT03
public static final URI JSON_HYPER_SCHEMA_DRAFT03
The hyper schema draft 03 URI.
-
JSON_LINKS_DRAFT03
public static final URI JSON_LINKS_DRAFT03
The schema links draft 03 URI.
-
JSON_SCHEMA_DRAFT04
public static final URI JSON_SCHEMA_DRAFT04
The schema draft 04 URI.
-
JSON_HYPER_SCHEMA_DRAFT04
public static final URI JSON_HYPER_SCHEMA_DRAFT04
The hyper schema draft 04 URI.
-
JSON_LINKS_DRAFT04
public static final URI JSON_LINKS_DRAFT04
The schema links draft 04 URI.
-
JSON_SCHEMA
public static final URI JSON_SCHEMA
The schema latest draft URI.
-
JSON_HYPER_SCHEMA
public static final URI JSON_HYPER_SCHEMA
The hyper schema latest draft URI.
-
JSON_LINKS
public static final URI JSON_LINKS
The schema links latest draft URI.
-
TYPE_STRING
public static final String TYPE_STRING
The string type.- See Also:
- Constant Field Values
-
TYPE_NUMBER
public static final String TYPE_NUMBER
The number type.- See Also:
- Constant Field Values
-
TYPE_INTEGER
public static final String TYPE_INTEGER
The integer type.- See Also:
- Constant Field Values
-
TYPE_BOOLEAN
public static final String TYPE_BOOLEAN
The boolean type.- See Also:
- Constant Field Values
-
TYPE_OBJECT
public static final String TYPE_OBJECT
The object type.- See Also:
- Constant Field Values
-
TYPE_ARRAY
public static final String TYPE_ARRAY
The array type.- See Also:
- Constant Field Values
-
TYPE_NULL
public static final String TYPE_NULL
The null type.- See Also:
- Constant Field Values
-
TYPE_ANY
public static final String TYPE_ANY
Deprecated.removed in JSON schema draft 04Theany
type.- See Also:
- JSON schema draft 04 - any, Constant Field Values
-
TYPE
public static final String TYPE
Thetype
field name.
-
PROPERTIES
public static final String PROPERTIES
Theproperties
field name.
-
PATTERNPROPERTIES
public static final String PATTERNPROPERTIES
ThepatternProperties
field name.
-
ADDITIONALPROPERTIES
public static final String ADDITIONALPROPERTIES
TheadditionalProperties
field name.
-
ITEMS
public static final String ITEMS
Theitems
field name.
-
ADDITIONALITEMS
public static final String ADDITIONALITEMS
TheadditionalItems
field name.
-
REQUIRED
public static final String REQUIRED
Therequired
field name.
-
DEPENDENCIES
public static final String DEPENDENCIES
Thedependencies
field name.
-
MINIMUM
public static final String MINIMUM
Theminimum
field name.
-
MAXIMUM
public static final String MAXIMUM
Themaximum
field name.
-
EXCLUSIVEMINIMUM
public static final String EXCLUSIVEMINIMUM
TheexclusiveMinimum
field name.
-
EXCLUSIVEMAXIMUM
public static final String EXCLUSIVEMAXIMUM
TheexclusiveMaximum
field name.
-
MINITEMS
public static final String MINITEMS
TheminItems
field name.
-
MAXITEMS
public static final String MAXITEMS
ThemaxItems
field name.
-
UNIQUEITEMS
public static final String UNIQUEITEMS
TheuniqueItems
field name.
-
PATTERN
public static final String PATTERN
Thepattern
field name.
-
MINLENGTH
public static final String MINLENGTH
TheminLength
field name.
-
MAXLENGTH
public static final String MAXLENGTH
ThemaxLength
field name.
-
ENUM
public static final String ENUM
Theenum
field name.
-
DEFAULT
public static final String DEFAULT
Thedefault
field name.
-
TITLE
public static final String TITLE
Thetype
field name.
-
DESCRIPTION
public static final String DESCRIPTION
Thetype
field name.
-
FORMAT
public static final String FORMAT
Theformat
field name.
-
DIVISIBLEBY
@Deprecated public static final String DIVISIBLEBY
Deprecated.renamed to multipleOf in JSON schema draft 04ThedivisibleBy
field name.
-
MULTIPLEOF
public static final String MULTIPLEOF
ThemultipleOf
field name.
-
DISALLOW
@Deprecated public static final String DISALLOW
Deprecated.removed in JSON schema draft 04Thedisallow
field name.
-
EXTENDS
@Deprecated public static final String EXTENDS
Deprecated.removed in JSON schema draft 04Theextends
field name.
-
ONEOF
public static final String ONEOF
TheoneOf
field name.
-
DEFINITIONS
public static final String DEFINITIONS
Thedefinitions
field name.
-
ID
public static final String ID
Theid
field name.
-
REF
public static final String REF
The$ref
field name.
-
SCHEMA
public static final String SCHEMA
The$schema
field name.
-
FORMAT_DATE_TIME
public static final String FORMAT_DATE_TIME
date-time This SHOULD be a date in ISO 8601 format of YYYY-MM- DDThh:mm:ssZ in UTC time. This is the recommended form of date/timestamp.- See Also:
- Constant Field Values
-
FORMAT_DATE
public static final String FORMAT_DATE
date This SHOULD be a date in the format of YYYY-MM-DD. It is recommended that you use the "date-time" format instead of "date" unless you need to transfer only the date part.- See Also:
- Constant Field Values
-
FORMAT_TIME
public static final String FORMAT_TIME
time This SHOULD be a time in the format of hh:mm:ss. It is recommended that you use the "date-time" format instead of "time" unless you need to transfer only the time part.- See Also:
- Constant Field Values
-
FORMAT_UTC_MILLISEC
public static final String FORMAT_UTC_MILLISEC
utc-millisec This SHOULD be the difference, measured in milliseconds, between the specified time and midnight, 00:00 of January 1, 1970 UTC. The value SHOULD be a number (integer or float).- See Also:
- Constant Field Values
-
FORMAT_REGEX
public static final String FORMAT_REGEX
regex A regular expression, following the regular expression specification from ECMA 262/Perl 5.- See Also:
- Constant Field Values
-
FORMAT_COLOR
public static final String FORMAT_COLOR
color This is a CSS color (like "#FF0000" or "red"), based on CSS 2.1 [W3C.CR-CSS21-20070719].- See Also:
- Constant Field Values
-
FORMAT_STYLE
public static final String FORMAT_STYLE
style This is a CSS style definition (like "color: red; background- color:#FFF"), based on CSS 2.1 [W3C.CR-CSS21-20070719].- See Also:
- Constant Field Values
-
FORMAT_PHONE
public static final String FORMAT_PHONE
phone This SHOULD be a phone number (format MAY follow E.123).- See Also:
- Constant Field Values
-
FORMAT_URI
public static final String FORMAT_URI
uri This value SHOULD be a URI.- See Also:
- Constant Field Values
-
FORMAT_EMAIL
public static final String FORMAT_EMAIL
email This SHOULD be an email address.- See Also:
- Constant Field Values
-
FORMAT_IP_ADDRESS
public static final String FORMAT_IP_ADDRESS
ip-address This SHOULD be an ip version 4 address.- See Also:
- Constant Field Values
-
FORMAT_IPV6
public static final String FORMAT_IPV6
ipv6 This SHOULD be an ip version 6 address.- See Also:
- Constant Field Values
-
FORMAT_HOST_NAME
public static final String FORMAT_HOST_NAME
host-name This SHOULD be a host-name.- See Also:
- Constant Field Values
-
ERROR_MSG_TYPE_MISMATCH
public static final String ERROR_MSG_TYPE_MISMATCH
Type mismatch. Expected type: {} found: {}.- See Also:
- Constant Field Values
-
ERROR_MSG_REQUIRED_PROPERTY
public static final String ERROR_MSG_REQUIRED_PROPERTY
Required property violation at {}.- See Also:
- Constant Field Values
-
ERROR_MSG_ENUM_VIOLATION
public static final String ERROR_MSG_ENUM_VIOLATION
Value at {} does not have a value in the enumeration.- See Also:
- Constant Field Values
-
ERROR_MSG_NULL_TYPE
public static final String ERROR_MSG_NULL_TYPE
Value at {} MUST be null.- See Also:
- Constant Field Values
-
ERROR_MSG_ADDITIONAL_PROPERTIES
public static final String ERROR_MSG_ADDITIONAL_PROPERTIES
Value has additional properties.- See Also:
- Constant Field Values
-
ERROR_MSG_
public static final String ERROR_MSG_
{}- See Also:
- Constant Field Values
-
-