Package net.sf.saxon.lib
Class Validation
- java.lang.Object
-
- net.sf.saxon.lib.Validation
-
public final class Validation extends java.lang.Object
This class contains constants and static methods to manipulate the validation property of a type.
-
-
Field Summary
Fields Modifier and Type Field Description static int
BY_TYPE
Code indicating that validation against a named type was requestedstatic int
DEFAULT
Code indicating that no specific validation options were requestedstatic int
INVALID
Code indicating that the value of a validation request was invalidstatic int
LAX
Code for lax validationstatic int
PRESERVE
Code corresponding to the XSLT option validation=preserve, which indicates that existing type annotations are to be preserved but no new validation is performed.static int
SKIP
Synonym forSTRIP
, corresponding to XQuery usagestatic int
STRICT
Code for strict validationstatic int
STRIP
Code corresponding to the XSLT option validation=strip, which indicates that existing type annotations are to be removed and no new validation is performed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
describe(int value)
Get a string representation of a validation codestatic int
getCode(java.lang.String value)
Get the integer validation code corresponding to a given string
-
-
-
Field Detail
-
INVALID
public static final int INVALID
Code indicating that the value of a validation request was invalid- See Also:
- Constant Field Values
-
STRICT
public static final int STRICT
Code for strict validation- See Also:
- Constant Field Values
-
LAX
public static final int LAX
Code for lax validation- See Also:
- Constant Field Values
-
PRESERVE
public static final int PRESERVE
Code corresponding to the XSLT option validation=preserve, which indicates that existing type annotations are to be preserved but no new validation is performed.- See Also:
- Constant Field Values
-
STRIP
public static final int STRIP
Code corresponding to the XSLT option validation=strip, which indicates that existing type annotations are to be removed and no new validation is performed.- See Also:
- Constant Field Values
-
SKIP
public static final int SKIP
Synonym forSTRIP
, corresponding to XQuery usage- See Also:
- Constant Field Values
-
DEFAULT
public static final int DEFAULT
Code indicating that no specific validation options were requested- See Also:
- Constant Field Values
-
BY_TYPE
public static final int BY_TYPE
Code indicating that validation against a named type was requested- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public static int getCode(java.lang.String value)
Get the integer validation code corresponding to a given string
-
describe
public static java.lang.String describe(int value)
Get a string representation of a validation code- Parameters:
value
- one of the validation codes defined in this class- Returns:
- one of the strings "strict", "lax", "preserve", "skip" (sic), or "invalid"
-
-