Public Member Functions | |
void | add (int index, Object obj) |
boolean | addAll (Collection collection) |
boolean | addAll (int index, Collection collection) |
void | clear () |
Object | get (int index) |
Object | remove (int index) |
Object | set (int index, Object obj) |
int | size () |
String | toString () |
Protected Member Functions | |
ContentList (Document document) | |
ContentList (Element parent) | |
void | add (int index, Element element) |
void | add (int index, Comment comment) |
void | add (int index, ProcessingInstruction pi) |
void | add (int index, CDATA cdata) |
void | add (int index, Text text) |
void | add (int index, EntityRef entity) |
void | clearAndSet (Collection collection) |
void | ensureCapacity (int minCapacity) |
List | getView (Filter filter) |
int | indexOfFirstElement () |
Protected Attributes | |
Object | parent |
ContentList
represents legal JDOM content, including content for Document
s or Element
s. This class is NOT PUBLIC; users should see it as a simple List implementation.
Philippe Riand
Bradley S. Huffman
|
Create a new instance of the ContentList representing Document content |
|
Create a new instance of the ContentList representing Element content |
|
Check and add the
|
|
Check and add the
|
|
Check and add the
|
|
Check and add the
|
|
Check and add the
|
|
Check and add the
|
|
Inserts the specified object at the specified position in this list. Shifts the object currently at that position (if any) and any subsequent objects to the right (adds one to their indices).
|
|
Inserts the specified collecton at the specified position in this list. Shifts the object currently at that position (if any) and any subsequent objects to the right (adds one to their indices).
|
|
Add the specified collecton to the end of this list.
|
|
Clear the current list. |
|
Clear the current list and set it to the contents of the
|
|
Increases the capacity of this
|
|
Return the object at the specified offset.
|
|
Return a view of this list based on the given filter.
|
|
Return the index of the first Element in the list. If the parent is a
|
|
Remove the object at the specified offset.
|
|
Set the object at the specified location to the supplied object.
|
|
Return the number of items in this list
|
|
Return this list as a
|
|