Package org.forgerock.opendj.ldap.schema
Enum SchemaValidationPolicy.Action
- java.lang.Object
-
- java.lang.Enum<SchemaValidationPolicy.Action>
-
- org.forgerock.opendj.ldap.schema.SchemaValidationPolicy.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<SchemaValidationPolicy.Action>
- 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 Summary
Enum Constants Enum Constant Description IGNORE
Schema validation will not be performed.REJECT
Schema validation will be performed and failures will cause the overall validation to fail.WARN
Schema validation will be performed, but failures will not cause the overall validation to fail.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isIgnore()
Returnstrue
if this policy isIGNORE
.boolean
isReject()
Returnstrue
if this policy isREJECT
.boolean
isWarn()
Returnstrue
if this policy isWARN
.boolean
needsChecking()
Returnstrue
if this policy isWARN
orREJECT
.static SchemaValidationPolicy.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static SchemaValidationPolicy.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static SchemaValidationPolicy.Action[] 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 (SchemaValidationPolicy.Action c : SchemaValidationPolicy.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemaValidationPolicy.Action 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
-
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
.
-
-