Inheritance diagram for org::jdom::Parent:
Public Member Functions | |
int | getContentSize () |
Package Functions | |
int | indexOf (Content child) |
List | cloneContent () |
Content | getContent (int index) |
List | getContent () |
List | getContent (Filter filter) |
List | removeContent () |
List | removeContent (Filter filter) |
boolean | removeContent (Content child) |
Content | removeContent (int index) |
Object | clone () |
Iterator | getDescendants () |
Iterator | getDescendants (Filter filter) |
Parent | getParent () |
Document | getDocument () |
Jason Hunter
|
Obtain a deep, unattached copy of this parent and it's children.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Returns a list containing detached clones of this parent's content list.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Returns as a java.util.List the content of this parent that matches the supplied filter. The returned list is "live" and in document order. Any modifications to it affect the element's actual contents. Modifications are checked for conformance to XML 1.0 rules. Sequential traversal through the List is best done with an Iterator since the underlying implement of java.util.List#size may require walking the entire list and indexed lookups may require starting at the beginning each time.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Returns the full content of this parent as a java.util.List which contains objects of type Content. The returned list is "live" and in document order. Any modifications to it affect the element's actual contents. Modifications are checked for conformance to XML 1.0 rules. Sequential traversal through the List is best done with an Iterator since the underlying implement of java.util.List#size may require walking the entire list and indexed lookups may require starting at the beginning each time.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Returns the child at the given index.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Returns the number of children in this parent's content list. Children may be any Content type.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Returns an java.util.Iterator that walks over all descendants in document order applying the Filter to return only elements that match the filter rule. With filters you can match only Elements, only Comments, Elements or Comments, only Elements with a given name and/or prefix, and so on.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Returns an java.util.Iterator that walks over all descendants in document order.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Return this parent's owning document or null if the branch containing this parent is currently not attached to a document.
Implemented in org::jdom::Document. |
|
Return this parent's parent, or null if this parent is currently not attached to another parent. This is the same method as in Content but also added to Parent to allow more easy up-the-tree walking.
Implemented in org::jdom::Document. |
|
Returns the index of the supplied child in the content list, or -1 if not a child of this parent.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Removes and returns the child at the given index, or returns null if there's no such child.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Removes a single child node from the content list.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Removes from this parent all child content matching the given filter and returns a list of the detached children.
Implemented in org::jdom::Document, and org::jdom::Element. |
|
Removes all content from this parent and returns the detached children.
Implemented in org::jdom::Document, and org::jdom::Element. |