public class CodedName extends java.lang.Object implements NodeName
Constructor and Description |
---|
CodedName(int fingerprint,
java.lang.String prefix,
NamePool pool) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.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.
|
java.lang.String |
getLocalPart()
Get the local part of the QName
|
NamespaceBinding |
getNamespaceBinding()
Get a
NamespaceBinding whose (prefix, uri) pair are the prefix and URI of this
node name |
java.lang.String |
getPrefix()
Get the prefix of the QName.
|
StructuredQName |
getStructuredQName()
Get the name in the form of a StructuredQName
|
java.lang.String |
getURI()
Get the namespace URI of the QName.
|
boolean |
hasFingerprint()
Ask whether this node name representation has a known fingerprint
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
hasURI(java.lang.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
|
int |
obtainFingerprint(NamePool namePool)
Get the nameCode of this name, allocating a new code from the namepool if necessary
|
java.lang.String |
toString()
The toString() method returns the value of getDisplayName(), that is, the lexical QName
|
public CodedName(int fingerprint, java.lang.String prefix, NamePool pool)
public java.lang.String getPrefix()
public java.lang.String getURI()
public java.lang.String getLocalPart()
getLocalPart
in interface NodeName
public java.lang.String getDisplayName()
getDisplayName
in interface NodeName
public StructuredQName getStructuredQName()
getStructuredQName
in interface NodeName
public boolean isInSameNamespace(NodeName other)
isInSameNamespace
in interface NodeName
other
- the other namepublic boolean hasURI(java.lang.String ns)
public NamespaceBinding getNamespaceBinding()
NamespaceBinding
whose (prefix, uri) pair are the prefix and URI of this
node namegetNamespaceBinding
in interface NodeName
public boolean hasFingerprint()
hasFingerprint
in interface NodeName
public int getFingerprint()
getFingerprint
in interface NodeName
public int obtainFingerprint(NamePool namePool)
obtainFingerprint
in interface NodeName
namePool
- the NamePool used to allocate the namepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isIdentical(IdentityComparable other)
IdentityComparable
isIdentical
in interface IdentityComparable
other
- the value to be compared withpublic int identityHashCode()
identityHashCode
in interface IdentityComparable
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.