Package net.sf.saxon.s9api
Enum ValidationMode
- All Implemented Interfaces:
Serializable
,Comparable<ValidationMode>
,java.lang.constant.Constable
Enumeration class defining different schema validation (or construction) modes
-
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 TypeMethodDescriptionprotected static ValidationMode
get
(int number) protected int
static ValidationMode
Returns the enum constant of this type with the specified name.static ValidationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STRICT
Strict validation -
LAX
Lax validation -
PRESERVE
Preserve existing type annotations if any -
STRIP
Remove any existing type annotations, mark as untyped -
DEFAULT
Value indication no preference: the choice is defined elsewhere
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getNumber
protected int getNumber() -
get
-