Java org.dom4j Branch fields, constructors, methods, implement or subclass

Example usage for Java org.dom4j Branch fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.dom4j Branch.

The text is from its open source code.

Method

voidadd(Node node)
Adds the given Node or throws IllegalAddException if the given node is not of a valid type.
voidadd(Comment comment)
Adds the given Comment to this branch.
voidadd(Element element)
Adds the given Element to this branch.
voidadd(ProcessingInstruction pi)
Adds the given ProcessingInstruction to this branch.
ElementaddElement(String name)
Adds a new Element node with the given name to this branch and returns a reference to the new node.
ElementaddElement(QName qname)
Adds a new Element node with the given QName to this branch and returns a reference to the new node.
ElementaddElement(String qualifiedName, String namespaceURI)
Adds a new Element node with the given qualified name and namespace URI to this branch and returns a reference to the new node.
Listcontent()
Returns the content nodes of this branch as a backed List so that the content of this branch may be modified directly using the List interface.
intindexOf(Node node)
Returns the index of the given node if it is a child node of this branch or -1 if the given node is not a child node.
Nodenode(int index)
Returns the Node at the specified index position.
intnodeCount()
Returns the number of Node instances that this branch contains.
IteratornodeIterator()
Returns an iterator through the content nodes of this branch
booleanremove(Node node)
Removes the given Node if the node is an immediate child of this branch.
booleanremove(Comment comment)
Removes the given Comment if the node is an immediate child of this branch.
booleanremove(Element element)
Removes the given Element if the node is an immediate child of this branch.
booleanremove(ProcessingInstruction pi)
Removes the given ProcessingInstruction if the node is an immediate child of this branch.
voidsetContent(List content)
Sets the contents of this branch as a List of Node instances.