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 intCode indicating that validation against a named type was requestedstatic final intCode indicating that no specific validation options were requestedstatic final intCode indicating that the value of a validation request was invalidstatic final intCode for lax validationstatic final intCode 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 intSynonym forSTRIP, corresponding to XQuery usagestatic final intCode for strict validationstatic final intCode 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"
-