Public Member Functions | |
AttributeList (Element parent) | |
boolean | add (Object obj) |
void | add (int index, Object obj) |
boolean | addAll (Collection collection) |
boolean | addAll (int index, Collection collection) |
void | clear () |
void | clearAndSet (Collection collection) |
Object | get (int index) |
Object | remove (int index) |
Object | set (int index, Object obj) |
int | size () |
String | toString () |
Protected Member Functions | |
void | add (int index, Attribute attribute) |
void | ensureCapacity (int minCapacity) |
Object | get (String name, Namespace namespace) |
int | indexOf (String name, Namespace namespace) |
boolean | remove (String name, Namespace namespace) |
Object | set (int index, Attribute attribute) |
Protected Attributes | |
Element | parent |
AttributeList
represents legal JDOM Attribute
content. 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 AttributeList representing Element content |
|
Check and add the
|
|
Inserts the specified attribute at the specified position in this list. Shifts the attribute currently at that position (if any) and any subsequent attributes to the right (adds one to their indices).
|
|
Add a attribute to the end of the list or replace a existing attribute with the same name and
|
|
Inserts the specified collecton at the specified position in this list. Shifts the attribute currently at that position (if any) and any subsequent attributes to the right (adds one to their indices).
|
|
Add all the objects in the specified collection.
|
|
Clear the current list. |
|
Clear the current list and set it to the contents of the
|
|
Increases the capacity of this
|
|
Return the
|
|
Return the object at the specified offset.
|
|
Return index of the |
|
Remove the
|
|
Remove the object at the specified offset.
|
|
Set the object at the specified location to the supplied object. Note: does not check for duplicate attributes.
|
|
Set the object at the specified location to the supplied object.
|
|
Return the number of items in this list
|
|
Return this list as a |
|
The parent Element |