public class VersionControlFilter extends ProxyReceiver
Although this mechanism is defined only for use with XSD 1.1, we support it also with XSD 1.0.
nextReceiver
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
VersionControlFilter(SchemaCompiler compiler,
Receiver next)
Create a VersionControlFilter
|
Modifier and Type | Method and Description |
---|---|
void |
characters(UnicodeString chars,
Location locationId,
int properties)
Character data
|
void |
comment(UnicodeString chars,
Location locationId,
int properties)
Output a comment
|
void |
endDocument()
Notify the end of a document node
|
void |
endElement()
End of element
|
void |
open()
Start of document
|
void |
processingInstruction(java.lang.String target,
UnicodeString data,
Location locationId,
int properties)
Processing Instruction
|
void |
startElement(NodeName elemName,
SchemaType type,
AttributeMap attributes,
NamespaceMap namespaces,
Location location,
int properties)
Notify the start of an element.
|
append, close, getNamePool, getNextReceiver, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument, usesTypeAnnotations
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
public VersionControlFilter(SchemaCompiler compiler, Receiver next)
compiler
- the schema compilernext
- the next receiver in the pipelinepublic void open() throws XPathException
open
in interface Receiver
open
in class ProxyReceiver
XPathException
- if an error occurspublic void startElement(NodeName elemName, SchemaType type, AttributeMap attributes, NamespaceMap namespaces, Location location, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class ProxyReceiver
elemName
- the name of the element.type
- integer code identifying the element's type within the name pool.attributes
- the attributes of the elementnamespaces
- the in-scope namespaces of the elementlocation
- the location of the element in the source documentproperties
- bit-significant properties of the element nodeXPathException
- if an error occurspublic void endElement() throws XPathException
endElement
in interface Receiver
endElement
in class ProxyReceiver
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 processingInstruction(java.lang.String target, UnicodeString data, Location locationId, int properties)
processingInstruction
in interface Receiver
processingInstruction
in class ProxyReceiver
target
- The PI name. This must be a legal name (it will not be checked).data
- The data portion of the processing instructionlocationId
- provides information such as line number and system ID.properties
- Additional information about the PI.public void comment(UnicodeString chars, Location locationId, int properties) throws XPathException
comment
in interface Receiver
comment
in class ProxyReceiver
chars
- The content of the commentlocationId
- provides information such as line number and system ID.properties
- Additional information about the comment.XPathException
- if an error occurspublic void endDocument() throws XPathException
endDocument
in interface Receiver
endDocument
in class ProxyReceiver
XPathException
- if an error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.