org.dom4j.tree

Class DefaultElement

public class DefaultElement extends AbstractElement

DefaultElement is the default DOM4J default implementation of an XML element.

Version: $Revision: 1.59 $

Author: James Strachan

Constructor Summary
DefaultElement(String name)
DefaultElement(QName qname)
DefaultElement(QName qname, int attributeCount)
DefaultElement(String name, Namespace namespace)
Method Summary
voidadd(Attribute attribute)
ListadditionalNamespaces()
ListadditionalNamespaces(String defaultNamespaceURI)
protected voidaddNewNode(Node node)
Attributeattribute(int index)
Attributeattribute(String name)
Attributeattribute(QName qName)
Attributeattribute(String name, Namespace namespace)
intattributeCount()
IteratorattributeIterator()
protected ListattributeList()
protected ListattributeList(int size)
Listattributes()
voidclearContent()
Objectclone()
protected ListcontentList()
ListdeclaredNamespaces()
Elementelement(String name)
Elementelement(QName qName)
Elementelement(String name, Namespace namespace)
DocumentgetDocument()
protected DocumentFactorygetDocumentFactory()
NamespacegetNamespaceForPrefix(String prefix)
NamespacegetNamespaceForURI(String uri)
ElementgetParent()
QNamegetQName()
StringgetStringValue()
StringgetText()
intindexOf(Node node)
Nodenode(int index)
intnodeCount()
IteratornodeIterator()
ProcessingInstructionprocessingInstruction(String target)
ListprocessingInstructions()
ListprocessingInstructions(String target)
booleanremove(Attribute attribute)
protected booleanremoveNode(Node node)
booleanremoveProcessingInstruction(String target)
protected voidsetAttributeList(List attributeList)
voidsetAttributes(List attributes)
voidsetContent(List content)
voidsetDocument(Document document)
voidsetParent(Element parent)
voidsetQName(QName name)
booleansupportsParent()

Constructor Detail

DefaultElement

public DefaultElement(String name)

DefaultElement

public DefaultElement(QName qname)

DefaultElement

public DefaultElement(QName qname, int attributeCount)

DefaultElement

public DefaultElement(String name, Namespace namespace)

Method Detail

add

public void add(Attribute attribute)

additionalNamespaces

public List additionalNamespaces()

additionalNamespaces

public List additionalNamespaces(String defaultNamespaceURI)

addNewNode

protected void addNewNode(Node node)

attribute

public Attribute attribute(int index)

attribute

public Attribute attribute(String name)

attribute

public Attribute attribute(QName qName)

attribute

public Attribute attribute(String name, Namespace namespace)

attributeCount

public int attributeCount()

attributeIterator

public Iterator attributeIterator()

attributeList

protected List attributeList()

attributeList

protected List attributeList(int size)

attributes

public List attributes()

clearContent

public void clearContent()

clone

public Object clone()

contentList

protected List contentList()

declaredNamespaces

public List declaredNamespaces()

element

public Element element(String name)

element

public Element element(QName qName)

element

public Element element(String name, Namespace namespace)

getDocument

public Document getDocument()

getDocumentFactory

protected DocumentFactory getDocumentFactory()

getNamespaceForPrefix

public Namespace getNamespaceForPrefix(String prefix)

getNamespaceForURI

public Namespace getNamespaceForURI(String uri)

getParent

public Element getParent()

getQName

public QName getQName()

getStringValue

public String getStringValue()

getText

public String getText()

indexOf

public int indexOf(Node node)

node

public Node node(int index)

nodeCount

public int nodeCount()

nodeIterator

public Iterator nodeIterator()

processingInstruction

public ProcessingInstruction processingInstruction(String target)

processingInstructions

public List processingInstructions()

processingInstructions

public List processingInstructions(String target)

remove

public boolean remove(Attribute attribute)

removeNode

protected boolean removeNode(Node node)

removeProcessingInstruction

public boolean removeProcessingInstruction(String target)

setAttributeList

protected void setAttributeList(List attributeList)

setAttributes

public void setAttributes(List attributes)

setContent

public void setContent(List content)

setDocument

public void setDocument(Document document)

setParent

public void setParent(Element parent)

setQName

public void setQName(QName name)

supportsParent

public boolean supportsParent()
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge