org.apache.crimson.tree
Class ElementNode

java.lang.Object
  extended byorg.apache.crimson.tree.NodeBase
      extended byorg.apache.crimson.tree.ParentNode
          extended byorg.apache.crimson.tree.NamespacedNode
              extended byorg.apache.crimson.tree.ElementNode2
                  extended byorg.apache.crimson.tree.ElementNode
All Implemented Interfaces:
org.w3c.dom.Element, ElementEx, org.w3c.dom.Node, NodeEx, org.w3c.dom.NodeList, XmlWritable

public class ElementNode
extends ElementNode2

A DOM Element that was created with a Level 1 create method. Note that the name ElementNode is maintained for backwards compatibility with element factories which may subclass using this name.


Nested Class Summary
 
Nested classes inherited from class org.apache.crimson.tree.NamespacedNode
ParentNode.TagList, ParentNode.TagListNS
 
Field Summary
 
Fields inherited from class org.apache.crimson.tree.ElementNode2
attributes
 
Fields inherited from class org.apache.crimson.tree.NamespacedNode
namespaceURI, ownerDocument, qName, readonly
 
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
 
Constructor Summary
ElementNode()
          Partially constructs an element; its tag will be assigned by the element factory (or subclass), while attributes and the parent (and implicitly, siblings) will be assigned when it is joined to a DOM document.
ElementNode(String name)
          Construct an element with a particular XML REC "Name".
 
Method Summary
 String getLocalName()
          Returns the local part of the qualified name of this node.
 String getPrefix()
          The namespace prefix of this node, or null if it is unspecified.
(package private)  ElementNode2 makeClone()
          Make a clone of this node and return it.
protected  void setTag(String t)
          Deprecated. Element factories are deprecated. For backwards compatibility only.
 
Methods inherited from class org.apache.crimson.tree.ElementNode2
checkArguments, checkChildType, cloneNode, createCopyForImportNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getIdAttributeName, getNodeType, getTagName, getUserObject, hasAttribute, hasAttributeNS, hasAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributes, setIdAttributeName, setReadonly, setUserObject, toString, trimToSize, write, writeXml
 
Methods inherited from class org.apache.crimson.tree.NamespacedNode
appendChild, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getIndexOf, getInheritedAttribute, getLanguage, getLastChild, getLength, getMessage, getMessage, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentImpl, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, isReadonly, isSupported, item, normalize, reduceWaste, removeChild, removeWhiteSpaces, replaceChild, setNodeValue, setOwnerDocument, setParentNode, setPrefix, writeChildrenXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Element
getElementsByTagName, getElementsByTagNameNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, getChildNodes, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 
Methods inherited from interface org.apache.crimson.tree.NodeEx
getIndexOf, getInheritedAttribute, getLanguage, isReadonly
 
Methods inherited from interface org.apache.crimson.tree.XmlWritable
writeChildrenXml
 

Constructor Detail

ElementNode

public ElementNode()
Partially constructs an element; its tag will be assigned by the element factory (or subclass), while attributes and the parent (and implicitly, siblings) will be assigned when it is joined to a DOM document. Element factories are deprecated. For backwards compatibility only.


ElementNode

public ElementNode(String name)
Construct an element with a particular XML REC "Name".

Method Detail

makeClone

ElementNode2 makeClone()
Make a clone of this node and return it. Used for cloneNode().

Overrides:
makeClone in class ElementNode2

setTag

protected void setTag(String t)
Deprecated. Element factories are deprecated. For backwards compatibility only.

Assigns the element's name, when the element has been constructed using the default constructor. For use by element factories potentially by custom subclasses.


getPrefix

public String getPrefix()
The namespace prefix of this node, or null if it is unspecified.

Specified by:
getPrefix in interface org.w3c.dom.Node
Overrides:
getPrefix in class NamespacedNode
Since:
DOM Level 2

getLocalName

public String getLocalName()
Returns the local part of the qualified name of this node.

Specified by:
getLocalName in interface org.w3c.dom.Node
Overrides:
getLocalName in class NamespacedNode
Since:
DOM Level 2