NodeName
public class FingerprintedQName extends StructuredQName implements NodeName
Constructor | Description |
---|---|
FingerprintedQName(java.lang.String prefix,
java.lang.String uri,
java.lang.String localName) |
|
FingerprintedQName(java.lang.String prefix,
java.lang.String uri,
java.lang.String localName,
int nameCode) |
Modifier and Type | Method | Description |
---|---|---|
int |
allocateNameCode(NamePool pool) |
Allocate a nameCode from the NamePool (if none has already been allocated).
|
boolean |
equals(java.lang.Object other) |
Compare two StructuredQName values for equality.
|
static FingerprintedQName |
fromClarkName(java.lang.String expandedName) |
Make a structuredQName from a Clark name
|
int |
getFingerprint() |
Get the fingerprint of this name if known.
|
int |
getNameCode() |
Get the nameCode of this name if known.
|
boolean |
hasFingerprint() |
Ask whether this node name representation has a known namecode and fingerprint
|
void |
setNameCode(int nameCode) |
Set the nameCode for this QName.
|
getDisplayName, getLocalPart, getNamespaceBinding, getPrefix, getStructuredQName, getURI, isInNamespace, isInSameNamespace
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
computeHashCode, fromLexicalQName, getClarkName, getDisplayName, getLocalPart, getNamespaceBinding, getPrefix, getStructuredQName, getURI, hashCode, isInNamespace, isInSameNamespace, toJaxpQName, toString
public FingerprintedQName(java.lang.String prefix, java.lang.String uri, java.lang.String localName)
public FingerprintedQName(java.lang.String prefix, java.lang.String uri, java.lang.String localName, int nameCode)
public static FingerprintedQName fromClarkName(java.lang.String expandedName)
expandedName
- the name in Clark notation "{uri}local" if in a namespace, or "local" otherwise.
The format "{}local" is also accepted for a name in no namespace.java.lang.IllegalArgumentException
- if the Clark name is malformedpublic boolean hasFingerprint()
hasFingerprint
in interface NodeName
hasFingerprint
in class StructuredQName
public int getFingerprint()
getFingerprint
in interface NodeName
getFingerprint
in class StructuredQName
public int getNameCode()
getNameCode
in interface NodeName
getNameCode
in class StructuredQName
public void setNameCode(int nameCode)
nameCode
- the nameCode associated with this QName by the NamePoolpublic int allocateNameCode(NamePool pool)
allocateNameCode
in interface NodeName
pool
- the namePoolpublic boolean equals(java.lang.Object other)
StructuredQName
equals
in class StructuredQName