Class CodedName
java.lang.Object
net.sf.saxon.om.CodedName
- All Implemented Interfaces:
NodeName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintallocateNameCode(NamePool namePool) Get the nameCode of this name, allocating a new code from the namepool if necessarybooleanIndicates whether some other object is "equal to" this one.Get the display name, that is the lexical QName in the form [prefix:]local-partintGet the fingerprint of this name if known.Get the local part of the QNameintGet the nameCode of this name if known.Get aNamespaceBindingwhose (prefix, uri) pair are the prefix and URI of this node nameGet the prefix of the QName.Get the name in the form of a StructuredQNamegetURI()Get the namespace URI of the QName.booleanAsk whether this node name representation has a known namecode and fingerprintinthashCode()Returns a hash code value for the object.booleanisInNamespace(String ns) Test whether this name is in a given namespacebooleanisInSameNamespace(NodeName other) Test whether this name is in the same namespace as another name
-
Constructor Details
-
CodedName
-
-
Method Details
-
getPrefix
-
getURI
-
getLocalPart
Get the local part of the QName- Specified by:
getLocalPartin interfaceNodeName- Returns:
- the local part of the QName
-
getDisplayName
Get the display name, that is the lexical QName in the form [prefix:]local-part- Specified by:
getDisplayNamein interfaceNodeName- Returns:
- the lexical QName
-
getStructuredQName
Get the name in the form of a StructuredQName- Specified by:
getStructuredQNamein interfaceNodeName- Returns:
- the name in the form of a StructuredQName
-
isInSameNamespace
Test whether this name is in the same namespace as another name- Specified by:
isInSameNamespacein interfaceNodeName- Parameters:
other- the other name- Returns:
- true if the two names are in the same namespace
-
isInNamespace
Test whether this name is in a given namespace- Specified by:
isInNamespacein interfaceNodeName- Parameters:
ns- the namespace to be tested against- Returns:
- true if the name is in the specified namespace
-
getNamespaceBinding
Get aNamespaceBindingwhose (prefix, uri) pair are the prefix and URI of this node name- Specified by:
getNamespaceBindingin interfaceNodeName- Returns:
- the corresponding NamespaceBinding
-
hasFingerprint
public boolean hasFingerprint()Ask whether this node name representation has a known namecode and fingerprint- Specified by:
hasFingerprintin interfaceNodeName- Returns:
- true if the methods getFingerprint() and getNameCode() will return a result other than -1
-
getFingerprint
public int getFingerprint()Get the fingerprint of this name if known. This method should not to any work to allocate a fingerprint if none is already available- Specified by:
getFingerprintin interfaceNodeName- Returns:
- the fingerprint if known; otherwise -1
-
getNameCode
public int getNameCode()Get the nameCode of this name if known. This method should not to any work to allocate a nameCode if none is already available- Specified by:
getNameCodein interfaceNodeName- Returns:
- the nameCode if known; otherwise -1
-
allocateNameCode
Get the nameCode of this name, allocating a new code from the namepool if necessary- Specified by:
allocateNameCodein interfaceNodeName- Parameters:
namePool- the NamePool used to allocate the name- Returns:
- a nameCode for this name, newly allocated if necessary
-
hashCode
-
equals
-