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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDisplayName, getLocalPart, getNamespaceBinding, getPrefix, getStructuredQName, getURI, hasURI, isInSameNamespaceidentityHashCodepublic 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 NodeNamehasFingerprint in class StructuredQNamepublic int getFingerprint()
getFingerprint in interface NodeNamegetFingerprint in class StructuredQNamepublic int getNameCode()
getNameCode in interface NodeNamegetNameCode in class StructuredQNamepublic void setNameCode(int nameCode)
nameCode - the nameCode associated with this QName by the NamePoolpublic int allocateNameCode(NamePool pool)
allocateNameCode in interface NodeNamepool - the namePoolpublic boolean equals(Object other)
StructuredQNameequals in class StructuredQNamepublic boolean isIdentical(IdentityComparable other)
isIdentical in interface IdentityComparableisIdentical in class StructuredQNameother - Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.