public enum ValidationLevel extends java.lang.Enum<ValidationLevel>
Specifies which level of validation to use when validation processes are run.
One example of validation is to validate tables found in the input documents. This is performed to ensure that the subsequent
table processing stages will not encounter errors due to invalid tables. Some validation errors in the input are know to cause
no issue with table processing and so setting that validation to use a level of ValidationLevel.RELAXED
would not prevent processing
from running if those particular invalidities were encountered.
Enum Constant and Description |
---|
RELAXED
Performs relaxed validation.
|
STRICT
Performs strict validation.
|
Modifier and Type | Method and Description |
---|---|
static ValidationLevel |
getValidationLevel(java.lang.String val)
Returns a
ValidationLevel object based on the supplied String value. |
java.lang.String |
toString()
The string form of each of the enumerated type constants.
|
static ValidationLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValidationLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationLevel STRICT
Performs strict validation. All invalidities will cause the appropriate subsequent processing to be bypassed.
public static final ValidationLevel RELAXED
Performs relaxed validation. Invalidities which are known to have no effect on subsequent processing will not cause that processing to be bypassed.
public static ValidationLevel[] values()
for (ValidationLevel c : ValidationLevel.values()) System.out.println(c);
public static ValidationLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<ValidationLevel>
public static ValidationLevel getValidationLevel(java.lang.String val)
Returns a ValidationLevel
object based on the supplied String value.
This method should not be used under normal circumstances, enum instance values should be used instead.
val
- a String representation of a ValidationLevel
value or null
to get the default valueValidationLevel
instance corresponding to the parameter, or null if the value is invalid