public class NamespaceSorter extends ProxyReceiver implements Sortable
nextReceiver
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
NamespaceSorter(Receiver next)
Create a namespace sorter
|
Modifier and Type | Method and Description |
---|---|
int |
compare(int a,
int b)
Compare two objects within this Sortable, identified by their position.
|
void |
namespace(NamespaceBindingSet namespaceBindings,
int properties)
Notify a namespace.
|
void |
startContent()
Notify the start of the content, that is, the completion of all attributes and namespaces.
|
void |
startElement(NodeName elemName,
SchemaType typeCode,
Location location,
int properties)
Notify the start of an element
|
void |
swap(int a,
int b)
Swap two objects within this Sortable, identified by their position.
|
append, attribute, characters, close, comment, endDocument, endElement, getNamePool, getNextReceiver, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument, usesTypeAnnotations
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
public NamespaceSorter(Receiver next)
next
- the next receiver in the pipelinepublic void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class ProxyReceiver
elemName
- 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
- the element's line & column numberproperties
- properties of the element nodeXPathException
- if an error occurspublic void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException
ProxyReceiver
namespace
in interface Receiver
namespace
in class ProxyReceiver
namespaceBindings
- the prefix/uri pair representing the namespace bindingproperties
- any special properties to be passed on this callXPathException
- if an error occurspublic void startContent() throws XPathException
startContent
in interface Receiver
startContent
in class ProxyReceiver
XPathException
- if an error occurspublic int compare(int a, int b)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.