public class CodedName extends Object implements NodeName
| Modifier and Type | Method and Description |
|---|---|
int |
allocateNameCode(NamePool namePool)
Get the nameCode of this name, allocating a new code from the namepool if necessary
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
String |
getDisplayName()
Get the display name, that is the lexical QName in the form [prefix:]local-part
|
int |
getFingerprint()
Get the fingerprint of this name if known.
|
String |
getLocalPart()
Get the local part of the QName
|
int |
getNameCode()
Get the nameCode of this name if known.
|
NamespaceBinding |
getNamespaceBinding()
Get a
NamespaceBinding whose (prefix, uri) pair are the prefix and URI of this
node name |
String |
getPrefix()
Get the prefix of the QName.
|
StructuredQName |
getStructuredQName()
Get the name in the form of a StructuredQName
|
String |
getURI()
Get the namespace URI of the QName.
|
boolean |
hasFingerprint()
Ask whether this node name representation has a known namecode and fingerprint
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
hasURI(String ns)
Test whether this name is in a given namespace
|
int |
identityHashCode()
Get a hashCode that offers the guarantee that if A.isIdentical(B), then A.identityHashCode() == B.identityHashCode()
|
boolean |
isIdentical(IdentityComparable other)
Determine whether two IdentityComparable objects are identical.
|
boolean |
isInSameNamespace(NodeName other)
Test whether this name is in the same namespace as another name
|
String |
toString()
The toString() method returns the value of getDisplayName(), that is, the lexical QName
|
public CodedName(int nameCode,
NamePool pool)
public String getPrefix()
public String getURI()
public String getLocalPart()
getLocalPart in interface NodeNamepublic String getDisplayName()
getDisplayName in interface NodeNamepublic StructuredQName getStructuredQName()
getStructuredQName in interface NodeNamepublic boolean isInSameNamespace(NodeName other)
isInSameNamespace in interface NodeNameother - the other namepublic boolean hasURI(String ns)
public NamespaceBinding getNamespaceBinding()
NamespaceBinding whose (prefix, uri) pair are the prefix and URI of this
node namegetNamespaceBinding in interface NodeNamepublic boolean hasFingerprint()
hasFingerprint in interface NodeNamepublic int getFingerprint()
getFingerprint in interface NodeNamepublic int getNameCode()
getNameCode in interface NodeNamepublic int allocateNameCode(NamePool namePool)
allocateNameCode in interface NodeNamenamePool - the NamePool used to allocate the namepublic int hashCode()
public boolean equals(Object obj)
public boolean isIdentical(IdentityComparable other)
IdentityComparableisIdentical in interface IdentityComparableother - the value to be compared withpublic int identityHashCode()
identityHashCode in interface IdentityComparableCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.