org.dom4j.dom
Class DOMElement
java.lang.Object
   org.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractNode
       org.dom4j.tree.AbstractBranch
org.dom4j.tree.AbstractBranch
           org.dom4j.tree.AbstractElement
org.dom4j.tree.AbstractElement
               org.dom4j.tree.DefaultElement
org.dom4j.tree.DefaultElement
                   org.dom4j.dom.DOMElement
org.dom4j.dom.DOMElement
- All Implemented Interfaces: 
- Branch, Cloneable, Element, Element, Node, Node, Serializable
- public class DOMElement- extends DefaultElement- implements Element
 DOMElement implements an XML element which supports the W3C
 DOM API.
 
- Version:
- $Revision: 1.23 $
- Author:
- James Strachan 
- See Also:
- Serialized Form
 
 
 
 
| 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 org.dom4j.Node | 
| ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE | 
 
 
| Method Summary | 
|  Node | appendChild(Node newChild)
 | 
| protected  Attribute | attribute(Attr attr)
 | 
| protected  Attribute | attribute(String namespaceURI,
          String localName)
 | 
|  Node | cloneNode(boolean deep)
 | 
| protected  Attribute | createAttribute(Attr newAttr)
 | 
|  String | getAttribute(String name)
 | 
|  Attr | getAttributeNode(String name)
 | 
|  Attr | getAttributeNodeNS(String namespaceURI,
                   String localName)
 | 
|  String | getAttributeNS(String namespaceURI,
               String localName)
 | 
|  NamedNodeMap | getAttributes()
 | 
|  NodeList | getChildNodes()
 | 
| protected  DocumentFactory | getDocumentFactory()
 | 
|  NodeList | getElementsByTagName(String name)
 | 
|  NodeList | getElementsByTagNameNS(String namespace,
                       String lName)
 | 
|  Node | getFirstChild()
 | 
|  Node | getLastChild()
 | 
|  String | getLocalName()
 | 
|  String | getNamespaceURI()Returns the URI mapped to the namespace of this element if one exists
 otherwise an empty
 Stringis returned. | 
|  Node | getNextSibling()
 | 
|  String | getNodeName()
 | 
|  String | getNodeValue()
 | 
|  Document | getOwnerDocument()
 | 
|  Node | getParentNode()
 | 
|  String | getPrefix()
 | 
|  Node | getPreviousSibling()
 | 
| protected  QName | getQName(String namespace,
         String qualifiedName)
 | 
|  String | getTagName()
 | 
|  boolean | hasAttribute(String name)
 | 
|  boolean | hasAttributeNS(String namespaceURI,
               String localName)
 | 
|  boolean | hasAttributes()
 | 
|  boolean | hasChildNodes()
 | 
|  Node | insertBefore(Node newChild,
             Node refChild)
 | 
|  boolean | isSupported(String feature,
            String version)
 | 
|  void | removeAttribute(String name)
 | 
|  Attr | removeAttributeNode(Attr oldAttr)
 | 
|  void | removeAttributeNS(String namespaceURI,
                  String localName)
 | 
|  Node | removeChild(Node oldChild)
 | 
|  Node | replaceChild(Node newChild,
             Node oldChild)
 | 
|  void | setAttribute(String name,
             String value)
 | 
|  Attr | setAttributeNode(Attr newAttr)
 | 
|  Attr | setAttributeNodeNS(Attr newAttr)
 | 
|  void | setAttributeNS(String namespaceURI,
               String qualifiedName,
               String value)
 | 
|  void | setNodeValue(String nodeValue)
 | 
|  void | setPrefix(String prefix)
 | 
|  boolean | supports(String feature,
         String version)
 | 
 
| Methods inherited from class org.dom4j.tree.DefaultElement | 
| add, additionalNamespaces, additionalNamespaces, addNewNode, attribute, attribute, attribute, attribute, attributeCount, attributeIterator, attributeList, attributeList, attributes, clearContent, clone, contentList, declaredNamespaces, element, element, element, getDocument, getNamespaceForPrefix, getNamespaceForURI, getParent, getQName, getStringValue, getText, indexOf, node, nodeCount, nodeIterator, processingInstruction, processingInstructions, processingInstructions, remove, removeNode, removeProcessingInstruction, setAttributeList, setAttributes, setContent, setDocument, setParent, setQName, supportsParent | 
 
| Methods inherited from class org.dom4j.tree.AbstractElement | 
| accept, add, add, add, add, add, add, add, add, addAttribute, addAttribute, addCDATA, addComment, addElement, addEntity, addNamespace, addNewNode, addNode, addNode, addProcessingInstruction, addProcessingInstruction, addText, appendAttributes, asXML, attributeValue, attributeValue, attributeValue, attributeValue, childAdded, childRemoved, createAttributeList, createAttributeList, createCopy, createCopy, createCopy, createElement, createElement, createSingleIterator, elementIterator, elementIterator, elementIterator, elementIterator, elements, elements, elements, elements, elementText, elementText, elementTextTrim, elementTextTrim, ensureAttributesCapacity, getData, getName, getNamespace, getNamespacePrefix, getNamespacesForURI, getNodeType, getPath, getQName, getQualifiedName, getUniquePath, getXPathNameStep, getXPathResult, hasMixedContent, isRootElement, isTextOnly, normalize, remove, remove, remove, remove, remove, remove, remove, remove, setAttributes, setAttributeValue, setAttributeValue, setData, setName, setNamespace, setText, toString, write | 
 
| Methods inherited from class org.dom4j.tree.AbstractBranch | 
| addElement, addElement, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, elementID, getContentAsStringValue, getContentAsText, getTextTrim, hasContent, invalidNodeTypeAddException, isReadOnly, setProcessingInstructions | 
 
| Methods inherited from class org.dom4j.tree.AbstractNode | 
| asXPathResult, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf | 
 
 
 
 
 
| Methods inherited from interface org.dom4j.Node | 
| asXPathResult, createXPath, detach, getNodeTypeName, getPath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf | 
 
DOMElement
public DOMElement(String name)
DOMElement
public DOMElement(QName qname)
DOMElement
public DOMElement(QName qname,
                  int attributeCount)
DOMElement
public DOMElement(String name,
                  Namespace namespace)
supports
public boolean supports(String feature,
                        String version)
- 
 
- 
 
getNamespaceURI
public String getNamespaceURI()
- Description copied from interface: Element
- 
 Returns the URI mapped to the namespace of this element if one exists
 otherwise an empty - Stringis returned.
 - 
 
- 
- Specified by:
- getNamespaceURIin interface- Node
- Overrides:
- getNamespaceURIin class- AbstractElement
 
- 
 
getPrefix
public String getPrefix()
- 
- Specified by:
- getPrefixin interface- Node
 
- 
 
setPrefix
public void setPrefix(String prefix)
               throws DOMException
- 
- Specified by:
- setPrefixin interface- Node
 
- 
- Throws:
- DOMException
 
getLocalName
public String getLocalName()
- 
- Specified by:
- getLocalNamein interface- Node
 
- 
 
getNodeName
public String getNodeName()
- 
- Specified by:
- getNodeNamein interface- Node
 
- 
 
getNodeValue
public String getNodeValue()
                    throws DOMException
- 
- Specified by:
- getNodeValuein interface- Node
 
- 
- Throws:
- DOMException
 
setNodeValue
public void setNodeValue(String nodeValue)
                  throws DOMException
- 
- Specified by:
- setNodeValuein interface- Node
 
- 
- Throws:
- DOMException
 
getParentNode
public Node getParentNode()
- 
- Specified by:
- getParentNodein interface- Node
 
- 
 
getChildNodes
public NodeList getChildNodes()
- 
- Specified by:
- getChildNodesin interface- Node
 
- 
 
getFirstChild
public Node getFirstChild()
- 
- Specified by:
- getFirstChildin interface- Node
 
- 
 
getLastChild
public Node getLastChild()
- 
- Specified by:
- getLastChildin interface- Node
 
- 
 
getPreviousSibling
public Node getPreviousSibling()
- 
- Specified by:
- getPreviousSiblingin interface- Node
 
- 
 
getNextSibling
public Node getNextSibling()
- 
- Specified by:
- getNextSiblingin interface- Node
 
- 
 
getAttributes
public NamedNodeMap getAttributes()
- 
- Specified by:
- getAttributesin interface- Node
 
- 
 
getOwnerDocument
public Document getOwnerDocument()
- 
- Specified by:
- getOwnerDocumentin interface- Node
 
- 
 
insertBefore
public Node insertBefore(Node newChild,
                         Node refChild)
                  throws DOMException
- 
- Specified by:
- insertBeforein interface- Node
 
- 
- Throws:
- DOMException
 
replaceChild
public Node replaceChild(Node newChild,
                         Node oldChild)
                  throws DOMException
- 
- Specified by:
- replaceChildin interface- Node
 
- 
- Throws:
- DOMException
 
removeChild
public Node removeChild(Node oldChild)
                 throws DOMException
- 
- Specified by:
- removeChildin interface- Node
 
- 
- Throws:
- DOMException
 
appendChild
public Node appendChild(Node newChild)
                 throws DOMException
- 
- Specified by:
- appendChildin interface- Node
 
- 
- Throws:
- DOMException
 
hasChildNodes
public boolean hasChildNodes()
- 
- Specified by:
- hasChildNodesin interface- Node
 
- 
 
cloneNode
public Node cloneNode(boolean deep)
- 
- Specified by:
- cloneNodein interface- Node
 
- 
 
isSupported
public boolean isSupported(String feature,
                           String version)
- 
- Specified by:
- isSupportedin interface- Node
 
- 
 
hasAttributes
public boolean hasAttributes()
- 
- Specified by:
- hasAttributesin interface- Node
 
- 
 
getTagName
public String getTagName()
- 
- Specified by:
- getTagNamein interface- Element
 
- 
 
getAttribute
public String getAttribute(String name)
- 
- Specified by:
- getAttributein interface- Element
 
- 
 
setAttribute
public void setAttribute(String name,
                         String value)
                  throws DOMException
- 
- Specified by:
- setAttributein interface- Element
 
- 
- Throws:
- DOMException
 
removeAttribute
public void removeAttribute(String name)
                     throws DOMException
- 
- Specified by:
- removeAttributein interface- Element
 
- 
- Throws:
- DOMException
 
getAttributeNode
public Attr getAttributeNode(String name)
- 
- Specified by:
- getAttributeNodein interface- Element
 
- 
 
setAttributeNode
public Attr setAttributeNode(Attr newAttr)
                      throws DOMException
- 
- Specified by:
- setAttributeNodein interface- Element
 
- 
- Throws:
- DOMException
 
removeAttributeNode
public Attr removeAttributeNode(Attr oldAttr)
                         throws DOMException
- 
- Specified by:
- removeAttributeNodein interface- Element
 
- 
- Throws:
- DOMException
 
getAttributeNS
public String getAttributeNS(String namespaceURI,
                             String localName)
- 
- Specified by:
- getAttributeNSin interface- Element
 
- 
 
setAttributeNS
public void setAttributeNS(String namespaceURI,
                           String qualifiedName,
                           String value)
                    throws DOMException
- 
- Specified by:
- setAttributeNSin interface- Element
 
- 
- Throws:
- DOMException
 
removeAttributeNS
public void removeAttributeNS(String namespaceURI,
                              String localName)
                       throws DOMException
- 
- Specified by:
- removeAttributeNSin interface- Element
 
- 
- Throws:
- DOMException
 
getAttributeNodeNS
public Attr getAttributeNodeNS(String namespaceURI,
                               String localName)
- 
- Specified by:
- getAttributeNodeNSin interface- Element
 
- 
 
setAttributeNodeNS
public Attr setAttributeNodeNS(Attr newAttr)
                        throws DOMException
- 
- Specified by:
- setAttributeNodeNSin interface- Element
 
- 
- Throws:
- DOMException
 
getElementsByTagName
public NodeList getElementsByTagName(String name)
- 
- Specified by:
- getElementsByTagNamein interface- Element
 
- 
 
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespace,
                                       String lName)
- 
- Specified by:
- getElementsByTagNameNSin interface- Element
 
- 
 
hasAttribute
public boolean hasAttribute(String name)
- 
- Specified by:
- hasAttributein interface- Element
 
- 
 
hasAttributeNS
public boolean hasAttributeNS(String namespaceURI,
                              String localName)
- 
- Specified by:
- hasAttributeNSin interface- Element
 
- 
 
getDocumentFactory
protected DocumentFactory getDocumentFactory()
- 
- Overrides:
- getDocumentFactoryin class- DefaultElement
 
- 
 
attribute
protected Attribute attribute(Attr attr)
- 
 
- 
 
attribute
protected Attribute attribute(String namespaceURI,
                              String localName)
- 
 
- 
 
createAttribute
protected Attribute createAttribute(Attr newAttr)
- 
 
- 
 
getQName
protected QName getQName(String namespace,
                         String qualifiedName)
- 
 
- 
 
Copyright © 2001-2005 MetaStuff Ltd.. All Rights Reserved.