Package org.forgerock.opendj.ldap.schema
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
An enumeration of the possible actions which can be performed when a
schema validation failure is encountered.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanisIgnore()Returnstrueif this policy isIGNORE.booleanisReject()Returnstrueif this policy isREJECT.booleanisWarn()Returnstrueif this policy isWARN.booleanReturnstrueif this policy isWARNorREJECT.Returns the enum constant of this class with the specified name.static SchemaValidationPolicy.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
Schema validation will not be performed. -
WARN
Schema validation will be performed, but failures will not cause the overall validation to fail. Error messages will be returned. -
REJECT
Schema validation will be performed and failures will cause the overall validation to fail. Error messages will be returned.
-
-
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
-
isIgnore
public boolean isIgnore()Returnstrueif this policy isIGNORE.- Returns:
trueif this policy isIGNORE.
-
isReject
public boolean isReject()Returnstrueif this policy isREJECT.- Returns:
trueif this policy isREJECT.
-
isWarn
public boolean isWarn()Returnstrueif this policy isWARN.- Returns:
trueif this policy isWARN.
-
needsChecking
public boolean needsChecking()Returnstrueif this policy isWARNorREJECT.- Returns:
trueif this policy isWARNorREJECT.
-