Example usage for Java org.jdom2 Parent fields, constructors, methods, implement or subclass
The text is from its open source code.
Parent | addContent(int index, Content child) Inserts the child into the content list at the given index. |
Parent | addContent(int index, Collection extends Content> c) Inserts the content in a collection into the content list at the given index. |
Content | getContent(int index) Returns the child at the given index. |
List | getContent(Filter Returns as a java.util.List the content of this parent that matches the supplied filter. |
int | getContentSize() Returns the number of children in this parent's content list. |
Parent | getParent() Return this parent's parent, or null if this parent is currently not attached to another parent. |
int | indexOf(Content child) Returns the index of the supplied child in the content list, or -1 if not a child of this parent. |
List | removeContent(Filter Removes from this parent all child content matching the given filter and returns a list of the detached children. |
boolean | removeContent(Content child) Removes a single child node from the content list. |
Content | removeContent(int index) Removes and returns the child at the given index, or returns null if there's no such child. |