net.sf.saxon.s9api

Class ValidationMode

public class ValidationMode extends Enum<ValidationMode>

Enumeration class defining different schema validation (or construction) modes
Field Summary
static ValidationModeDEFAULT
Value indication no preference: the choice is defined elsewhere
static ValidationModeLAX
Lax validation
static ValidationModePRESERVE
Preserve existing type annotations if any
static ValidationModeSTRICT
Strict validation
static ValidationModeSTRIP
Remove any existing type annotations, mark as untyped
static List<ValidationMode>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
Method Summary
List<ValidationMode>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
protected static ValidationModeget(int number)
protected intgetNumber()
static ValidationModevalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

DEFAULT

public static final ValidationMode DEFAULT
Value indication no preference: the choice is defined elsewhere

LAX

public static final ValidationMode LAX
Lax validation

PRESERVE

public static final ValidationMode PRESERVE
Preserve existing type annotations if any

STRICT

public static final ValidationMode STRICT
Strict validation

STRIP

public static final ValidationMode STRIP
Remove any existing type annotations, mark as untyped

VALUES

public static final List<ValidationMode> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(ValidationMode c : ValidationMode.VALUES)
    System.out.println(c);

Method Detail

family

public final List<ValidationMode> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

get

protected static ValidationMode get(int number)

getNumber

protected int getNumber()

valueOf

public static final ValidationMode valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.