This class keeps indicies for URI and local name for enabling faster processing.
Names are ordered lexicographically (nsUri first, local name next.)
This is the same order required by canonical XML.
| Modifier and Type | Field and Description |
|---|---|
| public final boolean | isAttribute
Specifies if the Name is associated with an EII or AII |
| public final String | localName
Local name. |
| public final short | |
| public final String | nsUri
Namespace URI. |
| public final short | nsUriIndex
Index -1 is reserved for representing the empty namespace URI of attributes. |
| public final short | qNameIndex
Index of the Name for an EII or AII |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(Name that)
Implements java. Compares this object with the specified object for order. |
| public boolean | |
| public QName | |
| public String |
| isAttribute | back to summary |
|---|---|
| public final boolean isAttribute Specifies if the Name is associated with an EII or AII | |
| localName | back to summary |
|---|---|
| public final String localName Local name. interned. | |
| localNameIndex | back to summary |
|---|---|
| public final short localNameIndex | |
| nsUri | back to summary |
|---|---|
| public final String nsUri Namespace URI. interned. | |
| nsUriIndex | back to summary |
|---|---|
| public final short nsUriIndex Index -1 is reserved for representing the empty namespace URI of attributes. | |
| qNameIndex | back to summary |
|---|---|
| public final short qNameIndex Index of the Name for an EII or AII | |
| Name | back to summary |
|---|---|
| pack-priv Name(int qNameIndex, int nsUriIndex, String nsUri, int localIndex, String localName, boolean isAttribute) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Name that) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(String nsUri, String localName) | |
| toQName | back to summary |
|---|---|
| public QName toQName() Creates a | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |