Enum Class SchemaValidationPolicy.Action

java.lang.Object
java.lang.Enum<SchemaValidationPolicy.Action>
org.forgerock.opendj.ldap.schema.SchemaValidationPolicy.Action
All Implemented Interfaces:
Serializable, Comparable<SchemaValidationPolicy.Action>, java.lang.constant.Constable
Enclosing class:
SchemaValidationPolicy

public static enum SchemaValidationPolicy.Action extends Enum<SchemaValidationPolicy.Action>
An enumeration of the possible actions which can be performed when a schema validation failure is encountered.
  • Enum Constant Details

    • IGNORE

      public static final SchemaValidationPolicy.Action IGNORE
      Schema validation will not be performed.
    • WARN

      public static final SchemaValidationPolicy.Action WARN
      Schema validation will be performed, but failures will not cause the overall validation to fail. Error messages will be returned.
    • REJECT

      public static final SchemaValidationPolicy.Action REJECT
      Schema validation will be performed and failures will cause the overall validation to fail. Error messages will be returned.
  • Method Details

    • values

      public static SchemaValidationPolicy.Action[] 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

      public static SchemaValidationPolicy.Action valueOf(String name)
      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
    • isIgnore

      public boolean isIgnore()
      Returns true if this policy is IGNORE.
      Returns:
      true if this policy is IGNORE.
    • isReject

      public boolean isReject()
      Returns true if this policy is REJECT.
      Returns:
      true if this policy is REJECT.
    • isWarn

      public boolean isWarn()
      Returns true if this policy is WARN.
      Returns:
      true if this policy is WARN.
    • needsChecking

      public boolean needsChecking()
      Returns true if this policy is WARN or REJECT.
      Returns:
      true if this policy is WARN or REJECT.