Package net.sf.saxon.lib
Class Validation
java.lang.Object
net.sf.saxon.lib.Validation
This class contains constants and static methods to manipulate the validation
property of a type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Code indicating that validation against a named type was requestedstatic final int
Code indicating that no specific validation options were requestedstatic final int
Code indicating that the value of a validation request was invalidstatic final int
Code for lax validationstatic final int
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 final int
Synonym forSTRIP
, corresponding to XQuery usagestatic final int
Code for strict validationstatic final int
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
-
Field Details
-
INVALID
public static final int INVALIDCode indicating that the value of a validation request was invalid- See Also:
-
STRICT
public static final int STRICTCode for strict validation- See Also:
-
LAX
public static final int LAXCode for lax validation- See Also:
-
PRESERVE
public static final int PRESERVECode 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:
-
STRIP
public static final int STRIPCode 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:
-
SKIP
public static final int SKIPSynonym forSTRIP
, corresponding to XQuery usage- See Also:
-
DEFAULT
public static final int DEFAULTCode indicating that no specific validation options were requested- See Also:
-
BY_TYPE
public static final int BY_TYPECode indicating that validation against a named type was requested- See Also:
-
-
Method Details
-
getCode
Get the integer validation code corresponding to a given string -
describe
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"
-