|
|||||||||
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 NodeInfo
getFingerprint
in class TinyNodeImpl
protected void setParentNode(int nodeNr)
public int getNameCode()
getNameCode
in interface NodeInfo
getNameCode
in class TinyNodeImpl
allocate
,
getFingerprint
public String getPrefix()
getPrefix
in interface Node
getPrefix
in class TinyNodeImpl
public String getDisplayName()
getDisplayName
in interface NodeInfo
getDisplayName
in class TinyNodeImpl
public String getLocalPart()
getLocalPart
in interface NodeInfo
getLocalPart
in class TinyNodeImpl
public String getURI()
getURI
in interface NodeInfo
getURI
in class TinyNodeImpl
public NodeInfo getParent()
getParent
in interface NodeInfo
getParent
in class TinyNodeImpl
public final boolean isSameNode(NodeInfo other)
isSameNode
in interface NodeInfo
isSameNode
in class TinyNodeImpl
other
- the node to be compared with this node
public final int getNodeKind()
Type
public final String getStringValue()
getStringValue
in interface Item
getStringValue
in interface NodeInfo
getStringValue
in class AbstractNode
public String getBaseURI()
getBaseURI
in interface NodeInfo
getBaseURI
in interface Node
getBaseURI
in class TinyNodeImpl
public String generateId()
generateId
in interface NodeInfo
generateId
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
TransformerException
protected long getSequenceNumber()
getSequenceNumber
in class TinyNodeImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |