Enum JsonSchema.ValidationPolicy
- java.lang.Object
-
- java.lang.Enum<JsonSchema.ValidationPolicy>
-
- org.forgerock.opendj.rest2ldap.schema.JsonSchema.ValidationPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<JsonSchema.ValidationPolicy>
- Enclosing class:
- JsonSchema
public static enum JsonSchema.ValidationPolicy extends Enum<JsonSchema.ValidationPolicy>
JSON value validation policies.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLED
JSON validation policy which does not perform any validation.LENIENT
JSON validation policy requiring conformance to RFC 7159 with the following exceptions: 1) comments are allowed, 2) single quotes may be used instead of double quotes, and 3) unquoted control characters are allowed in strings.STRICT
JSON validation policy requiring strict conformance to RFC 7159.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonSchema.ValidationPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static JsonSchema.ValidationPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRICT
public static final JsonSchema.ValidationPolicy STRICT
JSON validation policy requiring strict conformance to RFC 7159.
-
LENIENT
public static final JsonSchema.ValidationPolicy LENIENT
JSON validation policy requiring conformance to RFC 7159 with the following exceptions: 1) comments are allowed, 2) single quotes may be used instead of double quotes, and 3) unquoted control characters are allowed in strings.
-
DISABLED
public static final JsonSchema.ValidationPolicy DISABLED
JSON validation policy which does not perform any validation.
-
-
Method Detail
-
values
public static JsonSchema.ValidationPolicy[] 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 (JsonSchema.ValidationPolicy c : JsonSchema.ValidationPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonSchema.ValidationPolicy 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
-
-