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>, Constable
Enclosing class:
JsonSchema

JSON value validation policies.
  • Enum Constant Details

    • 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

      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 name
      NullPointerException - if the argument is null