org.dom4j.dom

Class DOMElement

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

Constructor Summary
DOMElement(String name)
DOMElement(QName qname)
DOMElement(QName qname, int attributeCount)
DOMElement(String name, Namespace namespace)
Method Summary
NodeappendChild(Node newChild)
protected Attributeattribute(Attr attr)
protected Attributeattribute(String namespaceURI, String localName)
NodecloneNode(boolean deep)
protected AttributecreateAttribute(Attr newAttr)
StringgetAttribute(String name)
AttrgetAttributeNode(String name)
AttrgetAttributeNodeNS(String namespaceURI, String localName)
StringgetAttributeNS(String namespaceURI, String localName)
NamedNodeMapgetAttributes()
NodeListgetChildNodes()
protected DocumentFactorygetDocumentFactory()
NodeListgetElementsByTagName(String name)
NodeListgetElementsByTagNameNS(String namespace, String lName)
NodegetFirstChild()
NodegetLastChild()
StringgetLocalName()
StringgetNamespaceURI()
NodegetNextSibling()
StringgetNodeName()
StringgetNodeValue()
DocumentgetOwnerDocument()
NodegetParentNode()
StringgetPrefix()
NodegetPreviousSibling()
protected QNamegetQName(String namespace, String qualifiedName)
StringgetTagName()
booleanhasAttribute(String name)
booleanhasAttributeNS(String namespaceURI, String localName)
booleanhasAttributes()
booleanhasChildNodes()
NodeinsertBefore(Node newChild, Node refChild)
booleanisSupported(String feature, String version)
voidremoveAttribute(String name)
AttrremoveAttributeNode(Attr oldAttr)
voidremoveAttributeNS(String namespaceURI, String localName)
NoderemoveChild(Node oldChild)
NodereplaceChild(Node newChild, Node oldChild)
voidsetAttribute(String name, String value)
AttrsetAttributeNode(Attr newAttr)
AttrsetAttributeNodeNS(Attr newAttr)
voidsetAttributeNS(String namespaceURI, String qualifiedName, String value)
voidsetNodeValue(String nodeValue)
voidsetPrefix(String prefix)
booleansupports(String feature, String version)

Constructor Detail

DOMElement

public DOMElement(String name)

DOMElement

public DOMElement(QName qname)

DOMElement

public DOMElement(QName qname, int attributeCount)

DOMElement

public DOMElement(String name, Namespace namespace)

Method Detail

appendChild

public Node appendChild(Node newChild)

attribute

protected Attribute attribute(Attr attr)

attribute

protected Attribute attribute(String namespaceURI, String localName)

cloneNode

public Node cloneNode(boolean deep)

createAttribute

protected Attribute createAttribute(Attr newAttr)

getAttribute

public String getAttribute(String name)

getAttributeNode

public Attr getAttributeNode(String name)

getAttributeNodeNS

public Attr getAttributeNodeNS(String namespaceURI, String localName)

getAttributeNS

public String getAttributeNS(String namespaceURI, String localName)

getAttributes

public NamedNodeMap getAttributes()

getChildNodes

public NodeList getChildNodes()

getDocumentFactory

protected DocumentFactory getDocumentFactory()

getElementsByTagName

public NodeList getElementsByTagName(String name)

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String namespace, String lName)

getFirstChild

public Node getFirstChild()

getLastChild

public Node getLastChild()

getLocalName

public String getLocalName()

getNamespaceURI

public String getNamespaceURI()

getNextSibling

public Node getNextSibling()

getNodeName

public String getNodeName()

getNodeValue

public String getNodeValue()

getOwnerDocument

public Document getOwnerDocument()

getParentNode

public Node getParentNode()

getPrefix

public String getPrefix()

getPreviousSibling

public Node getPreviousSibling()

getQName

protected QName getQName(String namespace, String qualifiedName)

getTagName

public String getTagName()

hasAttribute

public boolean hasAttribute(String name)

hasAttributeNS

public boolean hasAttributeNS(String namespaceURI, String localName)

hasAttributes

public boolean hasAttributes()

hasChildNodes

public boolean hasChildNodes()

insertBefore

public Node insertBefore(Node newChild, Node refChild)

isSupported

public boolean isSupported(String feature, String version)

removeAttribute

public void removeAttribute(String name)

removeAttributeNode

public Attr removeAttributeNode(Attr oldAttr)

removeAttributeNS

public void removeAttributeNS(String namespaceURI, String localName)

removeChild

public Node removeChild(Node oldChild)

replaceChild

public Node replaceChild(Node newChild, Node oldChild)

setAttribute

public void setAttribute(String name, String value)

setAttributeNode

public Attr setAttributeNode(Attr newAttr)

setAttributeNodeNS

public Attr setAttributeNodeNS(Attr newAttr)

setAttributeNS

public void setAttributeNS(String namespaceURI, String qualifiedName, String value)

setNodeValue

public void setNodeValue(String nodeValue)

setPrefix

public void setPrefix(String prefix)

supports

public boolean supports(String feature, String version)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge