public class EmptyContentValidator extends AttributeValidator
ContentValidator.Nillability
childValidator, nilled, pendingMessages
nextReceiver
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
EmptyContentValidator(UserComplexType type,
Receiver next)
Create a validator for an empty content model
|
Modifier and Type | Method and Description |
---|---|
void |
characters(UnicodeString chars,
Location locationId,
int properties)
Character data
|
void |
endElement()
End of element
|
protected 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 elemName,
SchemaType type,
AttributeMap attributes,
NamespaceMap namespaces,
Location location,
int properties)
Output element start tag (for a child of the element being validated)
|
getMostRecentAttributeType, processWildcardTerm, setAttributeGroup, validateAttributes
checkNoCharactersWhenNil, checkNoChildrenWhenNil, endDocument, getAnnotation, getContainingElement, getContainingElementLocationId, getContainingElementName, getElementDeclaration, getNamespaceResolver, getNillability, isNilled, makeChildValidator, makeValidator, makeValidatorForType, setAnnotation, setContainingElement, setElementDeclaration, setNillability, setNilled
append, getAttributeInheritor, getConstraintChecker, getValidationContext, reportIfInvalid, reportValidationError, setConstraintChecker, setStartTagBuffer, setValidationContext, usesTypeAnnotations
close, comment, getNamePool, getNextReceiver, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
public EmptyContentValidator(UserComplexType type, Receiver next) throws MissingComponentException
type
- the empty content typenext
- the next receiver in the pipelineMissingComponentException
- if the schema is incomplete or incorrectpublic SchemaType getSchemaType()
getSchemaType
in class ContentValidator
protected ContentValidator getChildValidator()
ContentValidator
getChildValidator
in class ContentValidator
public void startElement(NodeName elemName, SchemaType type, AttributeMap attributes, NamespaceMap namespaces, Location location, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class AttributeValidator
elemName
- the name of the element.type
- the type annotation of the element.attributes
- the attributes of this elementnamespaces
- the in-scope namespaces of this element: generally this is all the in-scope
namespaces, without relying on inheriting namespaces from parent elementslocation
- an object providing information about the module, line, and column where the node originatedproperties
- bit-significant properties of the element node. If there are no relevant
properties, zero is supplied. The definitions of the bits are in class ReceiverOption
XPathException
- if an error occurspublic void characters(UnicodeString chars, Location locationId, int properties) throws XPathException
characters
in interface Receiver
characters
in class AttributeValidator
chars
- The character contentlocationId
- the location of the node in the source, or of the instruction that created itproperties
- Additional properties @throws net.sf.saxon.trans.XPathExceptionXPathException
- if an error occurspublic void endElement() throws XPathException
endElement
in interface Receiver
endElement
in class ProxyReceiver
XPathException
- if an error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.