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 SummaryFieldsModifier 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- 
INVALIDpublic static final int INVALIDCode indicating that the value of a validation request was invalid- See Also:
 
- 
STRICTpublic static final int STRICTCode for strict validation- See Also:
 
- 
LAXpublic static final int LAXCode for lax validation- See Also:
 
- 
PRESERVEpublic 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:
 
- 
STRIPpublic 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:
 
- 
SKIPpublic static final int SKIPSynonym forSTRIP, corresponding to XQuery usage- See Also:
 
- 
DEFAULTpublic static final int DEFAULTCode indicating that no specific validation options were requested- See Also:
 
- 
BY_TYPEpublic static final int BY_TYPECode indicating that validation against a named type was requested- See Also:
 
 
- 
- 
Method Details- 
getCodeGet the integer validation code corresponding to a given string
- 
describeGet 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"
 
 
-