public class AnyTypeValidator extends LaxValidator
ContentValidator.Nillability
childValidator, nil, pendingMessages
locallyInvalid
nextReceiver
pipelineConfiguration, previousAtomic, systemId
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(java.lang.CharSequence chars,
Location 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 nodeName,
SchemaType typeCode,
Location location,
int properties)
Handle the start tag for a child element of the element being validated
|
attribute, getChildValidator, getSchemaType
checkNoCharactersWhenNil, checkNoChildrenWhenNil, endDocument, getAnnotation, getContainingElement, getContainingElementLocationId, getContainingElementName, getElementDeclaration, getNamespaceResolver, getNillability, isNil, makeChildValidator, makeValidator, makeValidatorForType, setAnnotation, setContainingElement, setElementDeclaration, setNillability
append, getConstraintChecker, getStartTagBuffer, getValidationContext, reportIfInvalid, reportValidationError, setConstraintChecker, setStartTagBuffer, setValidationContext, usesTypeAnnotations
close, comment, getNamePool, getNextReceiver, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
public 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 nodeName, SchemaType typeCode, Location location, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class LaxValidator
nodeName
- integer code identifying the name of the element within the name pool.typeCode
- the element's type annotation.location
- a location associated with the event (typically either a location in the
source document or the stylesheet)properties
- properties of the element nodeXPathException
- if an error occurspublic void characters(java.lang.CharSequence chars, Location locationId, int properties) throws XPathException
characters
in interface Receiver
characters
in class LaxValidator
chars
- The character contentlocationId
- the location of the node in the source, or of the instruction that created itproperties
- Additional properties @throws XPathException If this element does not allow character dataXPathException
- if an error occurspublic void endElement() throws XPathException
endElement
in interface Receiver
endElement
in class ProxyReceiver
XPathException
- if the element is invalidCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.