public class AnyTypeValidator extends LaxValidator
childValidator, nil, NIL_ALLOWED, NIL_DISALLOWED, NIL_IGNORED, pendingMessageslocallyInvalidnextReceiverpipelineConfiguration, previousAtomic, systemIdPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING| Constructor and Description |
|---|
AnyTypeValidator(ElementDecl elementDecl,
Receiver next)
Create an AnyTypeValidator for a specific element declaration
|
AnyTypeValidator(Receiver next)
Create an AnyTypeValidator
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(CharSequence chars,
int locationId,
int properties)
Handle character data appearing as a child of the element being validated
|
void |
endElement()
Validation at the end of the element being validated.
|
void |
startElement(NodeName nameCode,
SchemaType typeCode,
int locationId,
int properties)
Handle the start tag for a child element of the element being validated
|
attribute, getChildValidator, getSchemaTypeendDocument, 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, getNamePool, getUnderlyingReceiver, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocumentappend, getConfiguration, getPipelineConfiguration, getSystemIdpublic AnyTypeValidator(Receiver next)
next - the next receiver in the pipelinepublic AnyTypeValidator(ElementDecl elementDecl, Receiver next)
elementDecl - the element declaration. Ignored if null.next - the next receiver in the pipelinepublic void startElement(NodeName nameCode, SchemaType typeCode, int locationId, int properties) throws XPathException
startElement in interface ReceiverstartElement in class LaxValidatornameCode - 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 void characters(CharSequence chars, int locationId, int properties) throws XPathException
characters in interface Receivercharacters in class LaxValidatorchars - The character contentproperties - Additional propertieslocationId - 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 - If this element does not allow character datapublic void endElement()
throws XPathException
endElement in interface ReceiverendElement in class ProxyReceiverXPathException - if the element is invalidCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.