abstract class TinyNodeImpl extends AbstractNode
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.
| Modifier and Type | Field and Description |
|---|---|
protected TinyDocumentImpl |
document |
protected int |
nodeNr |
protected TinyNodeImpl |
parent |
NODE_LETTERATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
TinyNodeImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareOrder(NodeInfo other)
Determine the relative position of this node and another node, in document order.
|
java.lang.String |
generateId()
Get a character string that uniquely identifies this node
|
java.lang.String |
getAttributeValue(int fingerprint)
Get the value of a given attribute of this node
|
java.lang.String |
getAttributeValue(java.lang.String uri,
java.lang.String localName)
Find the value of a given attribute of this node.
|
java.lang.String |
getBaseURI()
Get the base URI for the node.
|
java.lang.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
|
java.lang.String |
getLocalName()
Get the local name of this node.
|
int |
getNameCode()
Get the name code of the node, used for matching names
|
org.w3c.dom.Node |
getOriginatingNode()
Get the node corresponding to this javax.xml.transform.dom.DOMLocator
|
NodeInfo |
getParent()
Find the parent node of this node.
|
java.lang.String |
getPrefix()
Get the prefix part of the name of this node.
|
protected long |
getSequenceNumber()
Get the node sequence number (in document order).
|
java.lang.String |
getSystemId()
Get the system ID for the entity containing the node.
|
java.lang.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 |
isSameNodeInfo(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(java.lang.String uri)
Set the system id of this node.
|
appendChild, appendData, cloneNode, compareDocumentPosition, copyStringValue, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, disallowUpdate, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildNodes, getColumnNumber, getData, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getImplementation, getLastChild, getLength, getName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getOwnerElement, getParentNode, getPreviousSibling, getPublicId, getSchemaTypeInfo, getSpecified, getTagName, getTextContent, getUserData, getValue, getWholeText, hasAttribute, hasAttributeNS, importNode, insertBefore, insertData, isDefaultNamespace, isElementContentWhitespace, isEqualNode, isId, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceChild, replaceData, replaceWholeText, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setUserData, setValue, splitText, substringData, supportsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopy, getNodeType, getStringValueprotected TinyDocumentImpl document
protected int nodeNr
protected TinyNodeImpl parent
public void setSystemId(java.lang.String uri)
protected void setParentNode(TinyNodeImpl parent)
public boolean isSameNodeInfo(NodeInfo other)
isSameNodeInfo in interface NodeInfoisSameNodeInfo in class AbstractNodepublic java.lang.String getSystemId()
getSystemId in interface NodeInfogetSystemId in interface javax.xml.transform.SourcegetSystemId in interface javax.xml.transform.SourceLocatorgetSystemId in class AbstractNodepublic java.lang.String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in interface org.w3c.dom.NodegetBaseURI in class AbstractNodepublic org.w3c.dom.Node getOriginatingNode()
getOriginatingNode in interface javax.xml.transform.dom.DOMLocatorgetOriginatingNode in class AbstractNodepublic void setLineNumber(int line)
public int getLineNumber()
getLineNumber in interface NodeInfogetLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber 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 nodepublic int getFingerprint()
getFingerprint in interface NodeInfogetFingerprint in class AbstractNodepublic int getNameCode()
getNameCode in interface NodeInfogetNameCode in class AbstractNodeallocate,
getFingerprintpublic java.lang.String getPrefix()
getPrefix in interface NodeInfogetPrefix in interface org.w3c.dom.NodegetPrefix in class AbstractNodepublic java.lang.String getURI()
getURI in interface NodeInfogetURI in class AbstractNodepublic java.lang.String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class AbstractNodepublic java.lang.String getLocalName()
getLocalName in interface NodeInfogetLocalName in interface org.w3c.dom.NodegetLocalName in class AbstractNodepublic AxisEnumeration getEnumeration(byte axisNumber, NodeTest nodeTest)
getEnumeration in interface NodeInfogetEnumeration in class AbstractNodeaxisNumber - Identifies the required axis, eg. Axis.CHILD or Axis.PARENTnodeTest - A pattern to be matched by the returned nodespublic NodeInfo getParent()
getParent in interface NodeInfogetParent in class AbstractNodepublic boolean hasChildNodes()
hasChildNodes in interface NodeInfohasChildNodes in interface org.w3c.dom.NodehasChildNodes in class AbstractNodetrue if this node has any attributes,
false otherwise.public boolean hasAttributes()
hasAttributes in interface org.w3c.dom.NodehasAttributes in class AbstractNodetrue if this node has any attributes,
false otherwise.public java.lang.String getAttributeValue(java.lang.String uri,
java.lang.String localName)
getAttributeValue in interface NodeInfogetAttributeValue in class AbstractNodeuri - the namespace uri of an attributelocalName - the local name of an attributepublic java.lang.String getAttributeValue(int fingerprint)
getAttributeValue in interface NodeInfogetAttributeValue in class AbstractNodefingerprint - The fingerprint of the attribute namepublic DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfogetDocumentRoot in class AbstractNodepublic void outputNamespaceNodes(Outputter out, boolean includeAncestors) throws javax.xml.transform.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 treejavax.xml.transform.TransformerExceptionpublic java.lang.String generateId()
generateId in interface NodeInfogenerateId in class AbstractNode