public class FingerprintedQName extends StructuredQName implements NodeName
Constructor and Description |
---|
FingerprintedQName(String prefix,
String uri,
String localName) |
FingerprintedQName(String prefix,
String uri,
String localName,
int nameCode) |
Modifier and Type | Method and Description |
---|---|
int |
allocateNameCode(NamePool pool)
Allocate a nameCode from the NamePool (if none has already been allocated).
|
boolean |
equals(Object other)
Compare two StructuredQName values for equality.
|
static FingerprintedQName |
fromClarkName(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
|
boolean |
isIdentical(IdentityComparable other)
Determine whether two IdentityComparable objects are identical.
|
void |
setNameCode(int nameCode)
Set the nameCode for this QName.
|
computeHashCode, fromEQName, fromLexicalQName, getClarkName, getDisplayName, getEQName, getLocalPart, getNamespaceBinding, getPrefix, getStructuredQName, getURI, hashCode, hasURI, identityHashCode, isInSameNamespace, toJaxpQName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDisplayName, getLocalPart, getNamespaceBinding, getPrefix, getStructuredQName, getURI, hasURI, isInSameNamespace
identityHashCode
public static FingerprintedQName fromClarkName(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.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(Object other)
StructuredQName
equals
in class StructuredQName
public boolean isIdentical(IdentityComparable other)
isIdentical
in interface IdentityComparable
isIdentical
in class StructuredQName
other
- Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.