CDATA, Comment, Element, EntityRef, ProcessingInstruction, Text
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | ContentList.FilterList
|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private Content[] | elementData
Our backing list |
| private static final int | |
| private Parent | parent
Document or Element this list belongs to |
| private static final long | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
The location to set the value to. index, Object The object to insert into the list.
throws IndexOutOfBoundsException if index < 0 || index > size() obj)Overrides java. Implements java. |
| pack-priv void | add(int
index where to add index, Content ElementElement to addOverrides java. Implements java. Element to this list at
the given index.
|
| public boolean | Returns: true if the list was modified as a result of
the add.The collection to add to the list. collection)Overrides java. Implements java. |
| public boolean | Returns: true if the list was modified as a result of
the add.
throws IndexOutOfBoundsException if index < 0 || index > size()The offset to start adding the data in the collection index, Collection<E> The collection to insert into the list. collection)Overrides java. Implements java. |
| public void | clear()
Overrides java. Implements java. |
| pack-priv void | clearAndSet(Collection<E>
The collection to use. collection)Clear the current list and set it to the contents
of the |
| private void | |
| private static void | |
| pack-priv void | ensureCapacity(int
the desired minimum capacity. minCapacity)Increases the capacity of this |
| public Object | Returns: The Object which was returned.The offset of the object. index)Implements abstract java. Implements java. |
| private int | |
| pack-priv List | |
| pack-priv int | Returns: index of the DocType, or -1 if it doesn't existReturn the index of the DocType element in the list. |
| pack-priv int | Returns: index of first element, or -1 if one doesn't existReturn the index of the first Element in the list. |
| public Object | Returns: The Object which was removed.The offset of the object. index)Overrides java. Implements java. |
| private static void | |
| public Object | Returns: The object which was replaced. throws IndexOutOfBoundsException if index < 0 || index >= size()The location to set the value to. index, Object The location to set the value to. obj)Overrides java. Implements java. |
| public int | Returns: The number of items in this list.Implements abstract java. Implements java. |
| public String | Returns: The number of items in this list.Overrides java. String
|
| pack-priv final void | uncheckedAddContent(Content
content to add without any checks c)Package internal method to support building from sources that are 100% trusted. |
| CVS_ID | back to summary |
|---|---|
| private static final String CVS_ID | |
| elementData | back to summary |
|---|---|
| private Content[] elementData Our backing list | |
| INITIAL_ARRAY_SIZE | back to summary |
|---|---|
| private static final int INITIAL_ARRAY_SIZE | |
| parent | back to summary |
|---|---|
| private Parent parent Document or Element this list belongs to | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| size | back to summary |
|---|---|
| private int size | |
| ContentList | back to summary |
|---|---|
| pack-priv ContentList(Parent parent) Force either a Document or Element parent | |
| add | back to summary |
|---|---|
| public void add(int index, Object obj) Overrides java. Implements java. 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).
| |
| add | back to summary |
|---|---|
| pack-priv void add(int index, Content child) Overrides java. Implements java. Check and add the
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<E> collection) Overrides java. Implements java. Add the specified collecton to the end of this list.
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int index, Collection<E> collection) Overrides java. Implements java. 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).
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Clear the current list. | |
| clearAndSet | back to summary |
|---|---|
| pack-priv void clearAndSet(Collection<E> collection) Clear the current list and set it to the contents
of the
| |
| documentCanContain | back to summary |
|---|---|
| private void documentCanContain(int index, Content child) throws IllegalAddException | |
| elementCanContain | back to summary |
|---|---|
| private static void elementCanContain(int index, Content child) throws IllegalAddException | |
| ensureCapacity | back to summary |
|---|---|
| pack-priv void ensureCapacity(int minCapacity) Increases the capacity of this
| |
| get | back to summary |
|---|---|
| public Object get(int index) Implements abstract java. Implements java. Return the object at the specified offset.
| |
| getModCount | back to summary |
|---|---|
| private int getModCount() Give access of ContentList.modCount to FilterList | |
| getView | back to summary |
|---|---|
| pack-priv List Return a view of this list based on the given filter. | |
| indexOfDocType | back to summary |
|---|---|
| pack-priv int indexOfDocType() Return the index of the DocType element in the list. If the list contains no DocType, it returns -1.
| |
| indexOfFirstElement | back to summary |
|---|---|
| pack-priv int indexOfFirstElement() Return the index of the first Element in the list. If the parent
is a
| |
| remove | back to summary |
|---|---|
| public Object remove(int index) Overrides java. Implements java. Remove the object at the specified offset.
| |
| removeParent | back to summary |
|---|---|
| private static void removeParent(Content c) Remove the parent of a Object | |
| set | back to summary |
|---|---|
| public Object set(int index, Object obj) Overrides java. Implements java. Set the object at the specified location to the supplied object. | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Return the number of items in this list
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return this list as a
| |
| uncheckedAddContent | back to summary |
|---|---|
| pack-priv final void uncheckedAddContent(Content c) Package internal method to support building from sources that are 100% trusted.
| |
FilterList represents legal JDOM content, including content
for Documents or Elements.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | count
Current number of items in this view |
| pack-priv int | expected
Expected modCount in our backing list |
| pack-priv Filter | filter
The Filter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
The location to set the value to. index, Object The object to insert into the list.
throws IndexOutOfBoundsException if index < 0 || index > size() obj)Overrides java. Implements java. |
| public Object | Returns: The Object which was returned.The offset of the object. index)Implements abstract java. Implements java. |
| private final int | Returns: True index in backing listIndex of in this view. index)Return the adjusted index |
| public Iterator | iterator()
Overrides java. Implements java. |
| public ListIterator | listIterator()
Overrides java. Implements java. |
| public ListIterator | listIterator(int
index of the first element to be returned from the
list iterator (by a call to index)next)Overrides java. Implements java. |
| public Object | Returns: The Object which was removed.The offset of the object. index)Overrides java. Implements java. |
| public Object | Returns: The object which was replaced. throws IndexOutOfBoundsException if index < 0 || index >= size()The location to set the value to. index, Object The location to set the value to. obj)Overrides java. Implements java. |
| public int | Returns: The number of items in this list.Implements abstract java. Implements java. |
| count | back to summary |
|---|---|
| pack-priv int count Current number of items in this view | |
| expected | back to summary |
|---|---|
| pack-priv int expected Expected modCount in our backing list | |
| filter | back to summary |
|---|---|
| pack-priv Filter filter The Filter | |
| FilterList | back to summary |
|---|---|
| pack-priv FilterList(Filter filter) Create a new instance of the FilterList with the specified Filter. | |
| add | back to summary |
|---|---|
| public void add(int index, Object obj) Overrides java. Implements java. 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).
| |
| get | back to summary |
|---|---|
| public Object get(int index) Implements abstract java. Implements java. Return the object at the specified offset.
| |
| getAdjustedIndex | back to summary |
|---|---|
| private final int getAdjustedIndex(int index) Return the adjusted index
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides java. Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence.
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides java. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper sequence).
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides java. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper
sequence), starting at the specified position in the list.
The specified index indicates the first element that would be
returned by an initial call to
| |
| remove | back to summary |
|---|---|
| public Object remove(int index) Overrides java. Implements java. Remove the object at the specified offset.
| |
| set | back to summary |
|---|---|
| public Object set(int index, Object obj) Overrides java. Implements java. Set the object at the specified location to the supplied object. | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Return the number of items in this list
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | canremove
Whether a call to remove() is valid |
| private boolean | canset
Whether a call to set() is valid |
| private int | cursor
Index in backing list of next object |
| private int | expected
Expected modCount in our backing list |
| pack-priv Filter | filter
The Filter that applies |
| private boolean | forward
Whether this iterator is in forward or reverse. |
| private int | fsize
Number of elements matching the filter. |
| private int | index
Index in ListIterator |
| private int | tmpcursor
the backing index to use if we actually DO move |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(Object
the element to insert obj)Implements java. |
| private void | |
| public boolean | hasNext()
Implements java. true if this list iterator has a next element.
|
| public boolean | hasPrevious()
Implements java. true if this list iterator has more elements
when traversing the list in the reverse direction.
|
| public Object | |
| public int | nextIndex()
Implements java. next.
|
| public Object | |
| public int | previousIndex()
Implements java. previous.
|
| public void | remove()
Implements java. next or previous.
|
| public void | set(Object
the element with which to replace the last element returned by
obj)next or previousImplements java. next or
previous with the specified element.
|
| canremove | back to summary |
|---|---|
| private boolean canremove Whether a call to remove() is valid | |
| canset | back to summary |
|---|---|
| private boolean canset Whether a call to set() is valid | |
| cursor | back to summary |
|---|---|
| private int cursor Index in backing list of next object | |
| expected | back to summary |
|---|---|
| private int expected Expected modCount in our backing list | |
| filter | back to summary |
|---|---|
| pack-priv Filter filter The Filter that applies | |
| forward | back to summary |
|---|---|
| private boolean forward Whether this iterator is in forward or reverse. | |
| fsize | back to summary |
|---|---|
| private int fsize Number of elements matching the filter. | |
| index | back to summary |
|---|---|
| private int index Index in ListIterator | |
| tmpcursor | back to summary |
|---|---|
| private int tmpcursor the backing index to use if we actually DO move | |
| FilterListIterator | back to summary |
|---|---|
| pack-priv FilterListIterator(Filter filter, int start) Default constructor | |
| add | back to summary |
|---|---|
| public void add(Object obj) Implements java. Inserts the specified element into the list.
| |
| checkConcurrentModification | back to summary |
|---|---|
| private void checkConcurrentModification() Check if are backing list is being modified by someone else. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Returns
| |
| hasPrevious | back to summary |
|---|---|
| public boolean hasPrevious() Implements java. Returns
| |
| next | back to summary |
|---|---|
| public Object next() Implements java. Returns the next element in the list.
| |
| nextIndex | back to summary |
|---|---|
| public int nextIndex() Implements java. Returns the index of the element that would be returned by a
subsequent call to
| |
| previous | back to summary |
|---|---|
| public Object previous() Implements java. Returns the previous element in the list.
| |
| previousIndex | back to summary |
|---|---|
| public int previousIndex() Implements java. Returns the index of the element that would be returned by a
subsequent call to
| |
| remove | back to summary |
|---|---|
| public void remove() Implements java. Removes from the list the last element that was returned by
the last call to | |
| set | back to summary |
|---|---|
| public void set(Object obj) Implements java. Replaces the last element returned by
| |