- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.runtime.Name
-
- All Implemented Interfaces:
Comparable<Name>
public final class Name extends Object implements Comparable<Name>
The internal representation of an XML 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.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description booleanisAttributeSpecifies if the Name is associated with an EII or AIIStringlocalNameLocal name.shortlocalNameIndexStringnsUriNamespace URI.shortnsUriIndexIndex -1 is reserved for representing the empty namespace URI of attributes.shortqNameIndexIndex of the Name for an EII or AII
-
-
-
Field Detail
-
nsUri
public final String nsUri
Namespace URI. interned.
-
localName
public final String localName
Local name. interned.
-
nsUriIndex
public final short nsUriIndex
Index -1 is reserved for representing the empty namespace URI of attributes.
-
localNameIndex
public final short localNameIndex
-
qNameIndex
public final short qNameIndex
Index of the Name for an EII or AII
-
isAttribute
public final boolean isAttribute
Specifies if the Name is associated with an EII or AII
-
-
Method Detail
-
compareTo
public int compareTo(Name that)
- Specified by:
compareToin interfaceComparable<Name>
-
-