Enum Class JsonSchema.ValidationPolicy
java.lang.Object
java.lang.Enum<JsonSchema.ValidationPolicy>
org.forgerock.opendj.rest2ldap.schema.JsonSchema.ValidationPolicy
- All Implemented Interfaces:
Serializable
,Comparable<JsonSchema.ValidationPolicy>
,java.lang.constant.Constable
- Enclosing class:
- JsonSchema
JSON value validation policies.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionJSON validation policy which does not perform any validation.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.JSON validation policy requiring strict conformance to RFC 7159. -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonSchema.ValidationPolicy
Returns the enum constant of this class with the specified name.static JsonSchema.ValidationPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRICT
JSON validation policy requiring strict conformance to RFC 7159. -
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
JSON validation policy which does not perform any validation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-