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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isIgnore()
Returnstrue
if this policy isIGNORE
.boolean
isReject()
Returnstrue
if this policy isREJECT
.boolean
isWarn()
Returnstrue
if this policy isWARN
.boolean
Returnstrue
if this policy isWARN
orREJECT
.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()Returnstrue
if this policy isIGNORE
.- Returns:
true
if this policy isIGNORE
.
-
isReject
public boolean isReject()Returnstrue
if this policy isREJECT
.- Returns:
true
if this policy isREJECT
.
-
isWarn
public boolean isWarn()Returnstrue
if this policy isWARN
.- Returns:
true
if this policy isWARN
.
-
needsChecking
public boolean needsChecking()Returnstrue
if this policy isWARN
orREJECT
.- Returns:
true
if this policy isWARN
orREJECT
.
-