com.icl.saxon.tinytree
final class TinyElementImpl extends TinyParentNodeImpl implements Element
This class is an implementation of NodeInfo and also implements the DOM Element interface
Constructor Summary | |
---|---|
TinyElementImpl(TinyDocumentImpl doc, int nodeNr)
Constructor |
Method Summary | |
---|---|
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(String uri, String localName)
Find the value of a given attribute of this node. |
String | getAttributeValue(int fingerprint)
Get 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. |
Parameters: allNamespaces true if all namespace nodes must be copied; false if namespace nodes for the parent element are already on the result tree
Parameters: uri the namespace uri of an attribute localName the local name of an attribute
Returns: the value of the attribute, if it exists, otherwise null
Parameters: fingerprint The fingerprint of the attribute name
Returns: the attribute value if it exists or null if not
Returns: NodeInfo.ELEMENT
Returns: true
if this node has any attributes,
false
otherwise.
Since: DOM Level 2
Parameters: index The relative position of the attribute, counting from zero. This is trusted to be in range.
Parameters: out The relevant outputter includeAncestors True if namespaces associated with ancestor elements must also be output; false if these are already known to be on the result tree.
Parameters: name 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.