Content content.
org.jdom.Content , org.jdom.Document , org.jdom.Element
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: a deep copy of this parent and it's children.Obtain a deep, unattached copy of this parent and it's children. |
| public List | Returns: list of cloned child contentReturns a list containing detached clones of this parent's content list. |
| public Content | Returns: child at the given indexlocation of desired child index)Returns the child at the given index. |
| public List | Returns: a list of the content of the parentReturns the full content of this parent as a |
| public List | Returns: a list of the content of the parent matching the filterfilter to apply filter)Returns as a |
| public int | Returns: number of childrenReturns the number of children in this parent's content list. |
| public Iterator | Returns: an iterator to walk descendantsReturns an |
| public Iterator | Returns: an iterator to walk descendants that match a filterfilter to select which descendants to see filter)Returns an |
| public Document | Returns: this child's owning document or null if noneReturn this parent's owning document or null if the branch containing this parent is currently not attached to a document. |
| public Parent | Returns: this parent's parent or null if noneReturn this parent's parent, or null if this parent is currently not attached to another parent. |
| public int | |
| public List | Returns: list of the old content detached from this parentRemoves all content from this parent and returns the detached children. |
| public List | Returns: list of the detached children matching the filterfilter to apply filter)Removes from this parent all child content matching the given filter and returns a list of the detached children. |
| public boolean | Returns: whether the removal occurredchild to remove child)Removes a single child node from the content list. |
| public Content | Returns: detached child at given index or null if noindex of child to remove index)Removes and returns the child at the given index, or returns null if there's no such child. |
| clone | back to summary |
|---|---|
| public Object clone() Obtain a deep, unattached copy of this parent and it's children.
| |
| cloneContent | back to summary |
|---|---|
| public List Returns a list containing detached clones of this parent's content list.
| |
| getContent | back to summary |
|---|---|
| public Content getContent(int index) Returns the child at the given index.
| |
| getContent | back to summary |
|---|---|
| public List Returns the full content of this parent as a
Sequential traversal through the List is best done with an Iterator
since the underlying implement of
| |
| getContent | back to summary |
|---|---|
| public List Returns as a
Sequential traversal through the List is best done with an Iterator
since the underlying implement of
| |
| getContentSize | back to summary |
|---|---|
| public int getContentSize() Returns the number of children in this parent's content list.
Children may be any
| |
| getDescendants | back to summary |
|---|---|
| public Iterator Returns an
| |
| getDescendants | back to summary |
|---|---|
| public Iterator Returns an | |
| getDocument | back to summary |
|---|---|
| public Document getDocument() Return this parent's owning document or null if the branch containing this parent is currently not attached to a document.
| |
| getParent | back to summary |
|---|---|
| public Parent getParent() 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.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(Content child) Returns the index of the supplied child in the content list, or -1 if not a child of this parent.
| |
| removeContent | back to summary |
|---|---|
| public List Removes all content from this parent and returns the detached children.
| |
| removeContent | back to summary |
|---|---|
| public List Removes from this parent all child content matching the given filter and returns a list of the detached children. | |
| removeContent | back to summary |
|---|---|
| public boolean removeContent(Content child) Removes a single child node from the content list.
| |
| removeContent | back to summary |
|---|---|
| public Content removeContent(int index) Removes and returns the child at the given index, or returns null if there's no such child.
| |