final class TinyElementImpl extends TinyParentNodeImpl implements Element
This class is an implementation of NodeInfo and also implements the DOM Element interface
document, nodeNr, parentNODE_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 |
|---|
TinyElementImpl(TinyDocumentImpl doc,
int nodeNr)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(Outputter out)
Copy this node to a given outputter (supporting xsl:copy-of)
|
void |
copy(Outputter out,
boolean allNamespaces)
Copy this node to a given outputter
|
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 of this element node.
|
short |
getNodeType()
Return the type of node.
|
boolean |
hasAttributes()
Returns whether this node (if it is an element) has any attributes.
|
TinyAttributeImpl |
makeAttributeNode(int index)
Make an attribute node for a given attribute of this element
|
void |
outputNamespaceNodes(Outputter out,
boolean includeAncestors)
Output all namespace nodes associated with this element.
|
void |
setAttribute(String name,
String value)
Set the value of an attribute on the current element.
|
copyStringValue, getStringValue, hasChildNodescompareOrder, generateId, getDisplayName, getDocumentRoot, getEnumeration, getFingerprint, getLineNumber, getLocalName, getNameCode, getOriginatingNode, getParent, getPrefix, getSequenceNumber, getSystemId, getURI, isSameNodeInfo, setLineNumber, setParentNode, setSystemIdappendChild, appendData, cloneNode, compareDocumentPosition, 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, waitgetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, cloneNode, compareDocumentPosition, getAttributes, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic TinyElementImpl(TinyDocumentImpl doc, int nodeNr)
public final short getNodeType()
getNodeType in interface NodeInfogetNodeType in interface Nodepublic String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in interface NodegetBaseURI in class TinyNodeImplpublic void outputNamespaceNodes(Outputter out, boolean includeAncestors) throws TransformerException
outputNamespaceNodes in interface NodeInfooutputNamespaceNodes in class TinyNodeImplout - The relevant outputterincludeAncestors - True if namespaces associated with ancestor
elements must also be output; false if these are already known to be
on the result tree.TransformerExceptionpublic boolean hasAttributes()
hasAttributes in interface NodehasAttributes in class TinyNodeImpltrue if this node has any attributes,
false otherwise.public String getAttributeValue(String uri, String localName)
getAttributeValue in interface NodeInfogetAttributeValue in class TinyNodeImpluri - the namespace uri of an attributelocalName - the local name of an attributepublic String getAttributeValue(int fingerprint)
getAttributeValue in interface NodeInfogetAttributeValue in class TinyNodeImplfingerprint - The fingerprint of the attribute namepublic TinyAttributeImpl makeAttributeNode(int index)
index - The relative position of the attribute, counting from zero. This
is trusted to be in range.public void setAttribute(String name, String value) throws DOMException
setAttribute in interface Elementname - The name of the attribute to be set. Any prefix is interpreted relative
to the namespaces defined for this element.value - The new value of the attribute. Set this to null to remove the attribute.DOMExceptionpublic void copy(Outputter out) throws TransformerException
copy in interface NodeInfoTransformerExceptionpublic void copy(Outputter out, boolean allNamespaces) throws TransformerException
allNamespaces - true if all namespace nodes must be copied; false
if namespace nodes for the parent element are already on the result treeTransformerException