public class ValidationContext extends ConversionRules
DEFAULT| Constructor and Description | 
|---|
| ValidationContext(ConversionRules rules) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected ConstraintChecker | getConstraintChecker()Get the constraint checker used in this pipeline | 
| Controller | getController()Get the Controller used for this validation episode | 
| protected String | getErrorCode() | 
| int | getErrorCount()Get the number of validation errors found during the validation episode | 
| InvalidityHandler | getInvalidityHandler()Get the callback for reporting validation errors | 
| StartTagBufferEE | getStartTagBuffer()Get the startTagBuffer | 
| Sequence | getValidationErrorObject()Get the error object. | 
| ValidationParams | getValidationParams()Get the validation parameters (as declared using saxon:param) | 
| SchemaType | getXSIType()Get the value of the xsi:type attribute. | 
| boolean | hasValidationParams()Ask whether there are any validation parameters defined | 
| boolean | incrementErrorCount()Increment the count of validation errors found | 
| void | setConstraintChecker(ConstraintChecker checker)Set the constraint checker used in this pipeline | 
| void | setController(Controller controller)Set the Controller used for this validation episode | 
| void | setErrorCode(String errorCode)Set the error code to be used for error messages | 
| void | setErrorLimit(int limit)Set a limit on the number of errors to be reported before validation is abandoned | 
| void | setInvalidityHandler(InvalidityHandler invalidityHandler)Set the callback for reporting validation errors | 
| void | setStartTagBuffer(StartTagBufferEE startTag)Set the StartTagBuffer, which buffers attributes on the element start tag, and also acts as
 the namespaceResolver to be used for resolving QName-valued attributes | 
| void | setValidationParams(ValidationParams validationParams)Set the validation parameters (as declared using saxon:param) | 
| void | setXSIType(SchemaType xsiType)Set the value of the xsi:type attribute. | 
| void | startValidation() | 
copy, copyTo, getConverter, getStringToDoubleConverter, isAllowYearZero, isDeclaredNotation, isValidURI, setAllowYearZero, setNotationSet, setStringToDoubleConverter, setTypeHierarchy, setURICheckerpublic ValidationContext(ConversionRules rules)
public Controller getController()
public void setController(Controller controller)
controller - the controller to be usedpublic InvalidityHandler getInvalidityHandler()
public void setInvalidityHandler(InvalidityHandler invalidityHandler)
invalidityHandler - the InvalidityHandler to be used for reporting validation failurespublic void startValidation()
public Sequence getValidationErrorObject()
public ValidationParams getValidationParams()
public boolean hasValidationParams()
public void setValidationParams(ValidationParams validationParams)
validationParams - the validation parameter values. May be null if none are required.public void setConstraintChecker(ConstraintChecker checker)
checker - the constraint checkerprotected ConstraintChecker getConstraintChecker()
public void setStartTagBuffer(StartTagBufferEE startTag)
startTag - the namespace resolverpublic StartTagBufferEE getStartTagBuffer()
public void setXSIType(SchemaType xsiType)
xsiType - the schema type identified by the xsi:type attributepublic SchemaType getXSIType()
public void setErrorCode(String errorCode)
errorCode - the error codeprotected String getErrorCode()
public void setErrorLimit(int limit)
limit - the limit on the number of errorspublic boolean incrementErrorCount()
public int getErrorCount()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.