|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.om.NoNamespaceName
public class NoNamespaceName
An implementation of NodeName for the common case of a name in no namespace
| Constructor Summary | |
|---|---|
NoNamespaceName(String localName)
|
|
NoNamespaceName(String localName,
int nameCode)
|
|
| Method Summary | |
|---|---|
int |
allocateNameCode(NamePool namePool)
Get the nameCode of this name, allocating a new code from the namepool if necessary |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
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. |
String |
getLocalPart()
Get the local part of the QName |
int |
getNameCode()
Get the nameCode of this name if known. |
NamespaceBinding |
getNamespaceBinding()
Get a NamespaceBinding whose (prefix, uri) pair are the prefix and URI of this
node name |
String |
getPrefix()
Get the prefix of the QName. |
StructuredQName |
getStructuredQName()
Get the name in the form of a StructuredQName |
String |
getURI()
Get the namespace URI of the QName. |
boolean |
hasFingerprint()
Ask whether this node name representation has a known namecode and fingerprint |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isInNamespace(String ns)
Test whether this name is in a given namespace |
boolean |
isInSameNamespace(NodeName other)
Test whether this name is in the same namespace as another name |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NoNamespaceName(String localName)
public NoNamespaceName(String localName,
int nameCode)
| Method Detail |
|---|
public String getPrefix()
getPrefix in interface NodeNamepublic String getURI()
getURI in interface NodeNamepublic String getLocalPart()
getLocalPart in interface NodeNamepublic String getDisplayName()
getDisplayName in interface NodeNamepublic StructuredQName getStructuredQName()
getStructuredQName in interface NodeNamepublic boolean isInSameNamespace(NodeName other)
isInSameNamespace in interface NodeNameother - the other name
public boolean isInNamespace(String ns)
isInNamespace in interface NodeNamens - the namespace to be tested against
public NamespaceBinding getNamespaceBinding()
NamespaceBinding whose (prefix, uri) pair are the prefix and URI of this
node name
getNamespaceBinding in interface NodeNamepublic boolean hasFingerprint()
hasFingerprint in interface NodeNamepublic int getFingerprint()
getFingerprint in interface NodeNamepublic int getNameCode()
getNameCode in interface NodeNamepublic int allocateNameCode(NamePool namePool)
allocateNameCode in interface NodeNamenamePool - the NamePool used to allocate the name
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||