|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.icl.saxon.om.AbstractNode
com.icl.saxon.tinytree.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 com.icl.saxon.om.AbstractNode |
NODE_LETTER |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface com.icl.saxon.om.NodeInfo |
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, NODE, NONE, NUMBER_OF_TYPES, PI, ROOT, TEXT |
Constructor Summary | |
(package private) |
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 |
getAttributeValue(String uri,
String localName)
Find 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. |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
AxisEnumeration |
getEnumeration(byte axisNumber,
NodeTest nodeTest)
Return an enumeration over the nodes reached by the given axis from this 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 |
getLocalName()
Get the local name of this node. |
int |
getNameCode()
Get the name code of the node, used for matching names |
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. |
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 |
void |
outputNamespaceNodes(Outputter out,
boolean includeAncestors)
Output all namespace nodes associated with this element. |
void |
setLineNumber(int line)
Set the line number of the node within its source document entity |
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 |
getNodeType |
Methods inherited from interface com.icl.saxon.om.NodeInfo |
copy, getNodeType, getStringValue |
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 NodeInfo
isSameNode
in class AbstractNode
public String getSystemId()
getSystemId
in interface NodeInfo
getSystemId
in class AbstractNode
public String getBaseURI()
getBaseURI
in interface NodeInfo
getBaseURI
in class AbstractNode
public Node getOriginatingNode()
getOriginatingNode
in interface DOMLocator
getOriginatingNode
in class AbstractNode
public void setLineNumber(int line)
public int getLineNumber()
getLineNumber
in interface NodeInfo
getLineNumber
in class AbstractNode
protected long getSequenceNumber()
public final int compareOrder(NodeInfo other)
compareOrder
in interface NodeInfo
compareOrder
in class AbstractNode
other
- The other node, whose position is to be compared with this node
public int getFingerprint()
getFingerprint
in interface NodeInfo
getFingerprint
in class AbstractNode
public int getNameCode()
getNameCode
in interface NodeInfo
getNameCode
in class AbstractNode
public String getPrefix()
getPrefix
in interface Node
getPrefix
in class AbstractNode
public String getURI()
getURI
in interface NodeInfo
getURI
in class AbstractNode
public String getDisplayName()
getDisplayName
in interface NodeInfo
getDisplayName
in class AbstractNode
public String getLocalName()
getLocalName
in interface Node
getLocalName
in class AbstractNode
public AxisEnumeration getEnumeration(byte axisNumber, NodeTest nodeTest)
getEnumeration
in interface NodeInfo
getEnumeration
in class AbstractNode
axisNumber
- Identifies the required axis, eg. Axis.CHILD or Axis.PARENTnodeTest
- A pattern to be matched by the returned nodes
public NodeInfo getParent()
getParent
in interface NodeInfo
getParent
in class AbstractNode
public boolean hasChildNodes()
hasChildNodes
in interface Node
hasChildNodes
in class AbstractNode
true
if this node has any attributes,
false
otherwise.public boolean hasAttributes()
hasAttributes
in interface Node
hasAttributes
in class AbstractNode
true
if this node has any attributes,
false
otherwise.public String getAttributeValue(String uri, String localName)
getAttributeValue
in interface NodeInfo
getAttributeValue
in class AbstractNode
uri
- the namespace uri of an attributelocalName
- the local name of an attribute
public String getAttributeValue(int fingerprint)
getAttributeValue
in interface NodeInfo
getAttributeValue
in class AbstractNode
fingerprint
- The fingerprint of the attribute name
public DocumentInfo getDocumentRoot()
getDocumentRoot
in interface NodeInfo
getDocumentRoot
in class AbstractNode
public void outputNamespaceNodes(Outputter out, boolean includeAncestors) throws TransformerException
outputNamespaceNodes
in interface NodeInfo
outputNamespaceNodes
in class AbstractNode
out
- 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
TransformerException
public String generateId()
generateId
in interface NodeInfo
generateId
in class AbstractNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |