Enum CoreSchemaCfgDefn.JsonValidationPolicy
- java.lang.Object
-
- java.lang.Enum<CoreSchemaCfgDefn.JsonValidationPolicy>
-
- org.forgerock.opendj.server.config.meta.CoreSchemaCfgDefn.JsonValidationPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<CoreSchemaCfgDefn.JsonValidationPolicy>
- Enclosing class:
- CoreSchemaCfgDefn
public static enum CoreSchemaCfgDefn.JsonValidationPolicy extends Enum<CoreSchemaCfgDefn.JsonValidationPolicy>
Defines the set of permissible values for the "json-validation-policy" property.Specifies the policy that will be used when validating JSON syntax values.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLED
JSON syntax values will not be validated and, as a result any sequence of bytes will be acceptable.LENIENT
JSON syntax values must comply with RFC 7159 except: 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 syntax values must strictly conform to RFC 7159.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static CoreSchemaCfgDefn.JsonValidationPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static CoreSchemaCfgDefn.JsonValidationPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
public static final CoreSchemaCfgDefn.JsonValidationPolicy DISABLED
JSON syntax values will not be validated and, as a result any sequence of bytes will be acceptable.
-
LENIENT
public static final CoreSchemaCfgDefn.JsonValidationPolicy LENIENT
JSON syntax values must comply with RFC 7159 except: 1) comments are allowed, 2) single quotes may be used instead of double quotes, and 3) unquoted control characters are allowed in strings.
-
STRICT
public static final CoreSchemaCfgDefn.JsonValidationPolicy STRICT
JSON syntax values must strictly conform to RFC 7159.
-
-
Method Detail
-
values
public static CoreSchemaCfgDefn.JsonValidationPolicy[] 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 (CoreSchemaCfgDefn.JsonValidationPolicy c : CoreSchemaCfgDefn.JsonValidationPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoreSchemaCfgDefn.JsonValidationPolicy 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<CoreSchemaCfgDefn.JsonValidationPolicy>
-
-