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 StringADDITIONALITEMSTheadditionalItemsfield name.static StringADDITIONALPROPERTIESTheadditionalPropertiesfield name.static StringDEFAULTThedefaultfield name.static StringDEFINITIONSThedefinitionsfield name.static StringDEPENDENCIESThedependenciesfield name.static StringDESCRIPTIONThetypefield name.static StringDISALLOWDeprecated.removed in JSON schema draft 04static StringDIVISIBLEBYDeprecated.renamed to multipleOf in JSON schema draft 04static StringENUMTheenumfield name.static StringERROR_MSG_{}static StringERROR_MSG_ADDITIONAL_PROPERTIESValue has additional properties.static StringERROR_MSG_ENUM_VIOLATIONValue at {} does not have a value in the enumeration.static StringERROR_MSG_NULL_TYPEValue at {} MUST be null.static StringERROR_MSG_REQUIRED_PROPERTYRequired property violation at {}.static StringERROR_MSG_TYPE_MISMATCHType mismatch.static StringEXCLUSIVEMAXIMUMTheexclusiveMaximumfield name.static StringEXCLUSIVEMINIMUMTheexclusiveMinimumfield name.static StringEXTENDSDeprecated.removed in JSON schema draft 04static StringFORMATTheformatfield name.static StringFORMAT_COLORcolor This is a CSS color (like "#FF0000" or "red"), based on CSS 2.1 [W3C.CR-CSS21-20070719].static StringFORMAT_DATEdate This SHOULD be a date in the format of YYYY-MM-DD.static StringFORMAT_DATE_TIMEdate-time This SHOULD be a date in ISO 8601 format of YYYY-MM- DDThh:mm:ssZ in UTC time.static StringFORMAT_EMAILemail This SHOULD be an email address.static StringFORMAT_HOST_NAMEhost-name This SHOULD be a host-name.static StringFORMAT_IP_ADDRESSip-address This SHOULD be an ip version 4 address.static StringFORMAT_IPV6ipv6 This SHOULD be an ip version 6 address.static StringFORMAT_PHONEphone This SHOULD be a phone number (format MAY follow E.123).static StringFORMAT_REGEXregex A regular expression, following the regular expression specification from ECMA 262/Perl 5.static StringFORMAT_STYLEstyle This is a CSS style definition (like "color: red; background- color:#FFF"), based on CSS 2.1 [W3C.CR-CSS21-20070719].static StringFORMAT_TIMEtime This SHOULD be a time in the format of hh:mm:ss.static StringFORMAT_URIuri This value SHOULD be a URI.static StringFORMAT_UTC_MILLISECutc-millisec This SHOULD be the difference, measured in milliseconds, between the specified time and midnight, 00:00 of January 1, 1970 UTC.static StringIDTheidfield name.static StringITEMSTheitemsfield name.static URIJSON_HYPER_SCHEMAThe hyper schema latest draft URI.static URIJSON_HYPER_SCHEMA_DRAFT03The hyper schema draft 03 URI.static URIJSON_HYPER_SCHEMA_DRAFT04The hyper schema draft 04 URI.static URIJSON_LINKSThe schema links latest draft URI.static URIJSON_LINKS_DRAFT03The schema links draft 03 URI.static URIJSON_LINKS_DRAFT04The schema links draft 04 URI.static URIJSON_SCHEMAThe schema latest draft URI.static URIJSON_SCHEMA_DRAFT03The schema draft 03 URI.static URIJSON_SCHEMA_DRAFT04The schema draft 04 URI.static StringMAXIMUMThemaximumfield name.static StringMAXITEMSThemaxItemsfield name.static StringMAXLENGTHThemaxLengthfield name.static StringMINIMUMTheminimumfield name.static StringMINITEMSTheminItemsfield name.static StringMINLENGTHTheminLengthfield name.static StringMULTIPLEOFThemultipleOffield name.static StringONEOFTheoneOffield name.static StringPATTERNThepatternfield name.static StringPATTERNPROPERTIESThepatternPropertiesfield name.static StringPROPERTIESThepropertiesfield name.static StringREFThe$reffield name.static StringREQUIREDTherequiredfield name.static StringSCHEMAThe$schemafield name.static StringTITLEThetypefield name.static StringTYPEThetypefield name.static StringTYPE_ANYDeprecated.removed in JSON schema draft 04static StringTYPE_ARRAYThe array type.static StringTYPE_BOOLEANThe boolean type.static StringTYPE_INTEGERThe integer type.static StringTYPE_NULLThe null type.static StringTYPE_NUMBERThe number type.static StringTYPE_OBJECTThe object type.static StringTYPE_STRINGThe string type.static StringUNIQUEITEMSTheuniqueItemsfield 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 04Theanytype.- See Also:
- JSON schema draft 04 - any, Constant Field Values
-
TYPE
public static final String TYPE
Thetypefield name.
-
PROPERTIES
public static final String PROPERTIES
Thepropertiesfield name.
-
PATTERNPROPERTIES
public static final String PATTERNPROPERTIES
ThepatternPropertiesfield name.
-
ADDITIONALPROPERTIES
public static final String ADDITIONALPROPERTIES
TheadditionalPropertiesfield name.
-
ITEMS
public static final String ITEMS
Theitemsfield name.
-
ADDITIONALITEMS
public static final String ADDITIONALITEMS
TheadditionalItemsfield name.
-
REQUIRED
public static final String REQUIRED
Therequiredfield name.
-
DEPENDENCIES
public static final String DEPENDENCIES
Thedependenciesfield name.
-
MINIMUM
public static final String MINIMUM
Theminimumfield name.
-
MAXIMUM
public static final String MAXIMUM
Themaximumfield name.
-
EXCLUSIVEMINIMUM
public static final String EXCLUSIVEMINIMUM
TheexclusiveMinimumfield name.
-
EXCLUSIVEMAXIMUM
public static final String EXCLUSIVEMAXIMUM
TheexclusiveMaximumfield name.
-
MINITEMS
public static final String MINITEMS
TheminItemsfield name.
-
MAXITEMS
public static final String MAXITEMS
ThemaxItemsfield name.
-
UNIQUEITEMS
public static final String UNIQUEITEMS
TheuniqueItemsfield name.
-
PATTERN
public static final String PATTERN
Thepatternfield name.
-
MINLENGTH
public static final String MINLENGTH
TheminLengthfield name.
-
MAXLENGTH
public static final String MAXLENGTH
ThemaxLengthfield name.
-
ENUM
public static final String ENUM
Theenumfield name.
-
DEFAULT
public static final String DEFAULT
Thedefaultfield name.
-
TITLE
public static final String TITLE
Thetypefield name.
-
DESCRIPTION
public static final String DESCRIPTION
Thetypefield name.
-
FORMAT
public static final String FORMAT
Theformatfield name.
-
DIVISIBLEBY
@Deprecated public static final String DIVISIBLEBY
Deprecated.renamed to multipleOf in JSON schema draft 04ThedivisibleByfield name.
-
MULTIPLEOF
public static final String MULTIPLEOF
ThemultipleOffield name.
-
DISALLOW
@Deprecated public static final String DISALLOW
Deprecated.removed in JSON schema draft 04Thedisallowfield name.
-
EXTENDS
@Deprecated public static final String EXTENDS
Deprecated.removed in JSON schema draft 04Theextendsfield name.
-
ONEOF
public static final String ONEOF
TheoneOffield name.
-
DEFINITIONS
public static final String DEFINITIONS
Thedefinitionsfield name.
-
ID
public static final String ID
Theidfield name.
-
REF
public static final String REF
The$reffield name.
-
SCHEMA
public static final String SCHEMA
The$schemafield 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
-
-