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 IGNORESchema validation will not be performed.REJECTSchema validation will be performed and failures will cause the overall validation to fail.WARNSchema 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 booleanisIgnore()Returnstrueif this policy isIGNORE.booleanisReject()Returnstrueif this policy isREJECT.booleanisWarn()Returnstrueif this policy isWARN.booleanneedsChecking()Returnstrueif this policy isWARNorREJECT.static SchemaValidationPolicy.ActionvalueOf(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()
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.
-
-