All Implemented Interfaces:
Node
All Known Implementing Classes:
BaseElement, Document, DOMDocument, NonLazyElement, DatatypeElement, DefaultElement, DOMElement, AbstractElement, AbstractDocument, UserDataElement, BeanElement, LElement, IndexedElement, DefaultDocument, AbstractBranch, Element
Branch interface defines the common behaviour for Nodes which
can contain child nodes (content) such as XML elements and documents. This
interface allows both elements and documents to be treated in a polymorphic
manner when changing or navigating child nodes (content).
< - a href="mailto:jstrachan@apache.org">James Strachan $ - Revision: 1.32 $| Method from org.dom4j.Branch Summary: |
|---|
| add, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructions |
| Method from org.dom4j.Branch Detail: |
|---|
Node or throws IllegalAddException
if the given node is not of a valid type. This is a polymorphic method
which will call the typesafe method for the node type such as
add(Element) or add(Comment). |
Comment to this branch. If the given node
already has a parent defined then an IllegalAddException
will be thrown. |
Element to this branch. If the given node
already has a parent defined then an IllegalAddException
will be thrown. |
ProcessingInstruction to this branch. If
the given node already has a parent defined then an
IllegalAddException will be thrown. |
Element node with the given name to this branch
and returns a reference to the new node. |
Element node with the given QName to
this branch and returns a reference to the new node. |
Element node with the given qualified name and
namespace URI to this branch and returns a reference to the new node. |
|
Node
instances this branch may contain. |
|
|
|
Node at the specified index position. |
Node instances that this branch
contains. |
|
Text nodes in the full depth of the sub-tree
underneath this Node, including attribute nodes, into a
"normal" form where only structure (e.g., elements, comments, processing
instructions, CDATA sections, and entity references) separates
Text nodes, i.e., there are neither adjacent
Text nodes nor empty Text nodes. This can
be used to ensure that the DOM view of a document is the same as if it
were saved and re-loaded, and is useful when operations (such as XPointer
lookups) that depend on a particular document tree structure are to be
used.In cases where the document contains CDATASections,
the normalize operation alone may not be sufficient, since XPointers do
not differentiate between Text nodes and
CDATASection nodes. |
|
Returns a list of all the processing instructions in this branch. The list is backed by this branch so that changes to the list will be reflected in the branch but the reverse is not the case. |
Returns a list of the processing instructions for the given target. The list is backed by this branch so that changes to the list will be reflected in the branch but the reverse is not the case. |
Node if the node is an immediate child
of this branch. If the given node is not an immediate child of this
branch then the Node#detach() method should be used instead. This
is a polymorphic method which will call the typesafe method for the node
type such as remove(Element) or remove(Comment). |
Comment if the node is an immediate
child of this branch. If the given node is not an immediate child of this
branch then the Node#detach() method should be used instead. |
Element if the node is an immediate
child of this branch. If the given node is not an immediate child of this
branch then the Node#detach() method should be used instead. |
ProcessingInstruction if the node is an
immediate child of this branch. If the given node is not an immediate
child of this branch then the Node#detach() method should be used
instead. |
|
List of
Node instances. |
|