public class ValidationContext extends ConversionRules
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
|
StartTagBufferEE |
getStartTagBuffer()
Get the startTagBuffer
|
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 |
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.
|
copy, copyTo, getConverter, getStringToDoubleConverter, getTypeHierarchy, isAllowYearZero, isDeclaredNotation, isValidURI, setAllowYearZero, setNotationSet, setStringToDoubleConverter, setTypeHierarchy, setURIChecker
public ValidationContext(ConversionRules rules)
public Controller getController()
public void setController(Controller controller)
controller
- the controller to be usedpublic 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.