public class LaxValidator extends ContentValidator
childValidator, nil, NIL_ALLOWED, NIL_DISALLOWED, NIL_IGNORED, pendingMessageslocallyInvalidnextReceiverpipelineConfiguration, previousAtomic, systemIdPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING| Constructor and Description |
|---|
LaxValidator(Receiver next) |
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(NodeName attName,
SimpleType typeCode,
CharSequence value,
int locationId,
int properties)
Handle an attribute
|
void |
characters(CharSequence chars,
int locationId,
int properties)
Character data
|
ContentValidator |
getChildValidator()
Get a validator to handle the children of the current element.
|
SchemaType |
getSchemaType()
Get the schema type against which we are validating, if any
|
void |
startElement(NodeName nameCode,
SchemaType typeCode,
int locationId,
int properties)
Output element start tag for a child element
|
endDocument, getAnnotation, getContainingElement, getContainingElementLocationId, getContainingElementName, getElementDeclaration, getNamespaceResolver, getNillability, isNil, makeChildValidator, makeValidator, makeValidatorForType, setAnnotation, setContainingElement, setElementDeclaration, setNillabilityappend, getConstraintChecker, getStartTagBuffer, getValidationContext, reportIfInvalid, reportValidationError, setConstraintChecker, setStartTagBuffer, setValidationContext, usesTypeAnnotationsclose, comment, endElement, getNamePool, getUnderlyingReceiver, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocumentappend, getConfiguration, getPipelineConfiguration, getSystemIdpublic LaxValidator(Receiver next)
public SchemaType getSchemaType()
getSchemaType in class ContentValidatorpublic void startElement(NodeName nameCode, SchemaType typeCode, int locationId, int properties) throws XPathException
startElement in interface ReceiverstartElement in class ContentValidatornameCode - integer code identifying the name of the element within the name pool.typeCode - integer code identifying the element's type within the name pool.locationId - an integer which can be interpreted using a LocationProvider to return
information such as line number and system ID. If no location information is available,
the value zero is supplied.properties - properties of the element nodeXPathException - if an error occurspublic ContentValidator getChildValidator()
ContentValidatorgetChildValidator in class ContentValidatorpublic void attribute(NodeName attName, SimpleType typeCode, CharSequence value, int locationId, int properties) throws XPathException
attribute in interface Receiverattribute in class ProxyReceiverattName - integer identifying the name of the attributetypeCode - integer identifying the type annotation of the
attributevalue - the value of the attributeproperties - bit-significant flags indicating special action to
be takenlocationId - an integer which can be interpreted using a LocationProvider to return
information such as line number and system ID. If no location information is available,
the value zero is supplied.XPathException - On any failure to write the attributepublic void characters(CharSequence chars, int locationId, int properties) throws XPathException
characters in interface Receivercharacters in class ProxyReceiverchars - The characterslocationId - an integer which can be interpreted using a LocationProvider
to return information such as line number and system ID. If no location information is available,
the value zero is supplied.properties - Bit significant value. The following bits are defined:
XPathException - if an error occursCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.