public class EmptyContentValidator extends AttributeValidator
childValidator, nil, NIL_ALLOWED, NIL_DISALLOWED, NIL_IGNORED, pendingMessageslocallyInvalidnextReceiverpipelineConfiguration, previousAtomic, systemIdPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING| Constructor and Description |
|---|
EmptyContentValidator(UserComplexType type,
Receiver next)
Create a validator for an empty content model
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(CharSequence chars,
Location locationId,
int properties)
Character data
|
void |
endElement()
End of element
|
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,
Location location,
int properties)
Output element start tag (for a child of the element being validated)
|
attribute, getMostRecentAttributeType, noCharactersWhenNil, processWildcardTerm, setAttributeGroup, startContentendDocument, 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, startDocumentappend, getConfiguration, getPipelineConfiguration, getSystemId, isTrueSequenceReceiverpublic EmptyContentValidator(UserComplexType type, Receiver next) throws MissingComponentException
type - the empty content typenext - the next receiver in the pipelinethrows - MissingComponentException if the schema is incomplete or incorrectMissingComponentExceptionpublic SchemaType getSchemaType()
getSchemaType in class ContentValidatorpublic ContentValidator getChildValidator()
ContentValidatorgetChildValidator in class ContentValidatorpublic void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException
startElement in interface ReceiverstartElement in class AttributeValidatornameCode - integer code identifying the name of the element within the name pool.typeCode - integer code identifying the element's type within the name pool.location - an object providing information about the module, line, and column where the node originatedproperties - properties of the element nodeXPathException - if an error occurspublic void characters(CharSequence chars, Location locationId, int properties) throws XPathException
characters in interface Receivercharacters in class AttributeValidatorchars - The character contentlocationId - provides information such as line number and system ID.properties - Additional properties @throws net.sf.saxon.trans.XPathException
If this element does not allow character dataXPathException - if an error occurspublic void endElement()
throws XPathException
endElement in interface ReceiverendElement in class ProxyReceiverXPathException - if an error occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.