public class AttributeSorter extends ProxyReceiver implements Sortable
Modifier and Type | Field and Description |
---|---|
protected AttributeCollectionImpl |
attributes |
nextReceiver
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
AttributeSorter(Receiver next)
Create an attribute sorter
|
Modifier and Type | Method and Description |
---|---|
void |
attribute(NodeName nameCode,
SimpleType typeCode,
java.lang.CharSequence value,
Location locationId,
int properties)
Notify an attribute.
|
int |
compare(int a,
int b)
Compare two objects within this Sortable, identified by their position.
|
void |
setOutputProperties(java.util.Properties details)
Set the properties for this attribute sorter
|
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, characters, close, comment, endDocument, endElement, getNamePool, getNextReceiver, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument, usesTypeAnnotations
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
protected AttributeCollectionImpl attributes
public AttributeSorter(Receiver next)
next
- the next receiver in the pipelinepublic void setOutputProperties(java.util.Properties details)
details
- the output propertiespublic 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 attribute(NodeName nameCode, SimpleType typeCode, java.lang.CharSequence value, Location locationId, int properties)
attribute
in interface Receiver
attribute
in class ProxyReceiver
nameCode
- The name of the attributetypeCode
- The type of the attributelocationId
- the attribute's line & column numberproperties
- Bit significant value. The following bits are defined:
value
- the string value of the attributeIllegalStateException:
- attempt to output an attribute when there is no open element
start tagpublic 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.