public class IdValidator extends ValidatingFilter
nextReceiver
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
IdValidator(Receiver next)
Create a validator for ID/IDREF constraints
|
Modifier and Type | Method and Description |
---|---|
void |
characters(UnicodeString chars,
Location locationId,
int properties)
Character data
|
void |
close()
End of output.
|
void |
endDocument()
End of document
|
void |
endElement()
End of element
|
protected void |
reportValidationError(ValidationFailure err,
Location locationId)
Report a validation error
|
void |
startElement(NodeName elemName,
SchemaType typeCode,
AttributeMap attributes,
NamespaceMap namespaces,
Location location,
int properties)
Notify the start of an element
|
boolean |
usesTypeAnnotations()
Ask whether this Receiver (or the downstream pipeline) makes any use of the type annotations
supplied on element and attribute events
|
append, getAttributeInheritor, getConstraintChecker, getValidationContext, reportIfInvalid, reportValidationError, setConstraintChecker, setStartTagBuffer, setValidationContext
comment, getNamePool, getNextReceiver, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
public IdValidator(Receiver next)
next
- the next receiver in the pipelinepublic void startElement(NodeName elemName, SchemaType typeCode, AttributeMap attributes, NamespaceMap namespaces, Location location, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class ProxyReceiver
elemName
- the name of the element.typeCode
- 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 ProxyReceiver
chars
- The characterslocationId
- provides information such as line number and system ID.properties
- Bit significant value. The following bits are defined:
XPathException
- if an error occurspublic void endElement() throws XPathException
endElement
in interface Receiver
endElement
in class ProxyReceiver
XPathException
- if an error occurspublic void endDocument() throws XPathException
endDocument
in interface Receiver
endDocument
in class ProxyReceiver
XPathException
- if an error occurspublic void close() throws XPathException
ProxyReceiver
close
in interface Receiver
close
in class ProxyReceiver
XPathException
- if an error occurspublic boolean usesTypeAnnotations()
usesTypeAnnotations
in interface Receiver
usesTypeAnnotations
in class ValidatingFilter
protected void reportValidationError(ValidationFailure err, Location locationId) throws XPathException
err
- The validation exceptionlocationId
- identifies the location in the source document or stylesheet/query where the
validation error was detectedValidationException
- if the error is determined to be fatalXPathException
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.