com.sun.xml.bind.v2.runtime
public final class Name extends Object implements Comparable<Name>
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.
Field Summary | |
---|---|
boolean | isAttribute
Specifies if the Name is associated with an EII or AII |
String | localName
Local name. interned. |
short | localNameIndex |
String | nsUri
Namespace URI. interned. |
short | nsUriIndex
Index -1 is reserved for representing the empty namespace URI of attributes. |
short | qNameIndex
Index of the Name for an EII or AII |
Constructor Summary | |
---|---|
Name(int qNameIndex, int nsUriIndex, String nsUri, int localIndex, String localName, boolean isAttribute) |
Method Summary | |
---|---|
int | compareTo(Name that) |
boolean | equals(String nsUri, String localName) |
QName | toQName()
Creates a QName from this. |
String | toString() |