|
|||||||||
| 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
abstract class TinyNodeImpl
A node in the XML parse tree representing an XML element, character content, or attribute.
This is the top-level class in the implementation class hierarchy; it essentially contains all those methods that can be defined using other primitive methods, without direct access to data.
| Field Summary | |
|---|---|
protected TinyDocumentImpl |
document
|
protected int |
nodeNr
|
protected TinyNodeImpl |
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 | |
|---|---|
TinyNodeImpl()
|
|
| Method Summary | |
|---|---|
int |
compareOrder(NodeInfo other)
Determine the relative position of this node and another node, in document order. |
String |
generateId()
Get a character string that uniquely identifies this node |
String |
getAttributeValue(int fingerprint)
Get the value of a given attribute of this node |
String |
getBaseURI()
Get the base URI for the node. |
String |
getDisplayName()
Get the display name of this node. |
int |
getDocumentNumber()
Get the document number of the document containing this node (Needed when the document isn't a real node, for sorting free-standing elements) |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
int |
getFingerprint()
Get the fingerprint of the node, used for matching names |
int |
getLineNumber()
Get the line number of the node within its source document entity |
String |
getLocalPart()
Get the local name of this node. |
int |
getNameCode()
Get the name code of the node, used for matching names |
NamePool |
getNamePool()
Get the NamePool for the tree containing this node |
Node |
getOriginatingNode()
Get the node corresponding to this javax.xml.transform.dom.DOMLocator |
NodeInfo |
getParent()
Find the parent node of this node. |
String |
getPrefix()
Get the prefix part of the name of this node. |
NodeInfo |
getRoot()
Get the root node of the tree (not necessarily a document node) |
protected long |
getSequenceNumber()
Get the node sequence number (in document order). |
String |
getSystemId()
Get the system ID for the entity containing the node. |
String |
getURI()
Get the URI part of the name of this node. |
boolean |
hasAttributes()
Returns whether this node has any attributes. |
boolean |
hasChildNodes()
Determine whether the node has any children. |
boolean |
isSameNode(NodeInfo other)
Determine whether this is the same node as another node |
AxisIterator |
iterateAxis(byte axisNumber)
Return an iterator over all the nodes reached by the given axis from this node |
AxisIterator |
iterateAxis(byte axisNumber,
NodeTest nodeTest)
Return an iterator over the nodes reached by the given axis from this node |
void |
outputNamespaceNodes(Receiver out,
boolean includeAncestors)
Output all namespace nodes associated with this element. |
protected void |
setParentNode(TinyNodeImpl parent)
Set the parent of this node. |
void |
setSystemId(String uri)
Set the system id of this node. |
| 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 |
| Methods inherited from interface net.sf.saxon.om.NodeInfo |
|---|
copy, getNodeKind |
| Field Detail |
|---|
protected TinyDocumentImpl document
protected int nodeNr
protected TinyNodeImpl parent
| Constructor Detail |
|---|
TinyNodeImpl()
| Method Detail |
|---|
public void setSystemId(String uri)
protected void setParentNode(TinyNodeImpl parent)
public boolean isSameNode(NodeInfo other)
isSameNode in interface NodeInfoisSameNode in class AbstractNodeother - the node to be compared with this node
public String getSystemId()
getSystemId in interface SourcegetSystemId in interface SourceLocatorgetSystemId in interface NodeInfogetSystemId in class AbstractNodepublic String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in interface NodegetBaseURI in class AbstractNodepublic Node getOriginatingNode()
getOriginatingNode in interface DOMLocatorgetOriginatingNode in class AbstractNodepublic int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface NodeInfogetLineNumber in class AbstractNodeprotected long getSequenceNumber()
public final int compareOrder(NodeInfo other)
compareOrder in interface NodeInfocompareOrder in class AbstractNodeother - The other node, whose position is to be compared with this node
public int getFingerprint()
getFingerprint in interface NodeInfogetFingerprint in class AbstractNodepublic int getNameCode()
getNameCode in interface NodeInfogetNameCode in class AbstractNodeallocate,
getFingerprintpublic String getPrefix()
public String getURI()
getURI in interface NodeInfogetURI in class AbstractNodepublic String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class AbstractNodepublic String getLocalPart()
getLocalPart in interface NodeInfogetLocalPart in class AbstractNodepublic AxisIterator iterateAxis(byte axisNumber)
axisNumber - Identifies the required axis, eg. Axis.CHILD or Axis.PARENT
Axis
public AxisIterator iterateAxis(byte axisNumber,
NodeTest nodeTest)
iterateAxis in interface NodeInfoiterateAxis in class AbstractNodeaxisNumber - Identifies the required axis, eg. Axis.CHILD or Axis.PARENTnodeTest - A pattern to be matched by the returned nodes.
Axispublic NodeInfo getParent()
getParent in interface NodeInfogetParent in class AbstractNodepublic boolean hasChildNodes()
hasChildNodes in interface NodeInfohasChildNodes in interface NodehasChildNodes in class AbstractNodetrue if this node has any attributes,
false otherwise.public boolean hasAttributes()
hasAttributes in interface NodehasAttributes in class AbstractNodetrue if this node has any attributes,
false otherwise.public String getAttributeValue(int fingerprint)
getAttributeValue in interface NodeInfogetAttributeValue in class AbstractNodefingerprint - The fingerprint of the attribute name
public NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class AbstractNodepublic DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfogetDocumentRoot in class AbstractNodepublic NamePool getNamePool()
public void outputNamespaceNodes(Receiver out,
boolean includeAncestors)
throws TransformerException
outputNamespaceNodes in interface NodeInfooutputNamespaceNodes in class AbstractNodeout - The relevant outputterincludeAncestors - True if namespaces declared on ancestor elements must
be output; false if it is known that these are already on the result tree
TransformerExceptionpublic String generateId()
generateId in interface NodeInfogenerateId in class AbstractNodepublic int getDocumentNumber()
getDocumentNumber in interface NodeInfogetDocumentNumber in class AbstractNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||