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.static final intBit setting that can be combined with a validation code to indicate that the data being validated is final output data, and that validation errors are therefore recoverable.static final intMask used when a validation code is combined with other information in an integer value -
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
-
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:
-
VALIDATION_MODE_MASK
public static final int VALIDATION_MODE_MASKMask used when a validation code is combined with other information in an integer value- See Also:
-
VALIDATE_OUTPUT
public static final int VALIDATE_OUTPUTBit setting that can be combined with a validation code to indicate that the data being validated is final output data, and that validation errors are therefore recoverable.- See Also:
-
-
Method Details
-
getCode
-
toString
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"
-