|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.om.AbstractNode
net.sf.saxon.tinytree.TinyNodeImpl
net.sf.saxon.tinytree.TinyNamespaceImpl
final class TinyNamespaceImpl
A node in the XML parse tree representing a Namespace. Note that this is generated only "on demand", when the namespace axis is expanded.
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.tinytree.TinyNodeImpl |
|---|
document, nodeNr, parent |
| Fields inherited from class net.sf.saxon.om.AbstractNode |
|---|
NODE_LETTER |
| Fields inherited from interface net.sf.saxon.om.NodeInfo |
|---|
ALL_NAMESPACES, LOCAL_NAMESPACES, NO_NAMESPACES |
| Constructor Summary | |
|---|---|
TinyNamespaceImpl(TinyDocumentImpl doc,
int nodeNr)
|
|
| Method Summary | |
|---|---|
void |
copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations)
Copy this node to a given outputter |
String |
generateId()
Get unique identifier. |
String |
getBaseURI()
Get the base URI for the node. |
String |
getDisplayName()
Get the display name of this node. |
int |
getFingerprint()
Get the fingerprint |
String |
getLocalPart()
Get the local name of this node. |
int |
getNameCode()
Get the nameCode, for name matching |
int |
getNamespaceCode()
Get the namespace code (a numeric representation of the prefix and URI) |
int |
getNodeKind()
Return the type of node. |
NodeInfo |
getParent()
Get the parent element of this namespace node |
String |
getPrefix()
Get the prefix part of the name of this node. |
protected long |
getSequenceNumber()
Get the node sequence number (in document order). |
String |
getStringValue()
Return the string value of the node. |
String |
getURI()
Get the URI part of the name of this node. |
boolean |
isSameNode(NodeInfo other)
Determine whether this is the same node as another node |
protected void |
setParentNode(int nodeNr)
Set the parent element for this namespace node |
| Methods inherited from class net.sf.saxon.tinytree.TinyNodeImpl |
|---|
compareOrder, getAttributeValue, getDocumentNumber, getDocumentRoot, getLineNumber, getNamePool, getOriginatingNode, getRoot, getSystemId, hasAttributes, hasChildNodes, iterateAxis, iterateAxis, outputNamespaceNodes, setParentNode, setSystemId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
|---|
compareDocumentPosition, getFeature, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData |
| Constructor Detail |
|---|
public TinyNamespaceImpl(TinyDocumentImpl doc,
int nodeNr)
| Method Detail |
|---|
public int getNamespaceCode()
public int getFingerprint()
getFingerprint in interface NodeInfogetFingerprint in class TinyNodeImplprotected void setParentNode(int nodeNr)
public int getNameCode()
getNameCode in interface NodeInfogetNameCode in class TinyNodeImplallocate,
getFingerprintpublic String getPrefix()
getPrefix in interface NodegetPrefix in class TinyNodeImplpublic String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class TinyNodeImplpublic String getLocalPart()
getLocalPart in interface NodeInfogetLocalPart in class TinyNodeImplpublic String getURI()
getURI in interface NodeInfogetURI in class TinyNodeImplpublic NodeInfo getParent()
getParent in interface NodeInfogetParent in class TinyNodeImplpublic final boolean isSameNode(NodeInfo other)
isSameNode in interface NodeInfoisSameNode in class TinyNodeImplother - the node to be compared with this node
public final int getNodeKind()
Typepublic final String getStringValue()
getStringValue in interface ItemgetStringValue in interface NodeInfogetStringValue in class AbstractNodepublic String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in interface NodegetBaseURI in class TinyNodeImplpublic String generateId()
generateId in interface NodeInfogenerateId in class TinyNodeImpl
public void copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations)
throws TransformerException
out - the Receiver to which the node should be copiedwhichNamespaces - in the case of an element, controls
which namespace nodes should be copied. Values are NO_NAMESPACES,
LOCAL_NAMESPACES, ALL_NAMESPACEScopyAnnotations - indicates whether the type annotations
of element and attribute nodes should be copied
TransformerExceptionprotected long getSequenceNumber()
getSequenceNumber in class TinyNodeImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||