|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<ElementType>
org.opensaml.xml.util.ListView<ElementType>
ElementType - the XMLObject type that this list operates onclass ListView<ElementType extends XMLObject>
A special list that works as a view of an IndexedXMLObjectChildrenList showing only the sublist associated with a given index. Operations performed on this sublist are reflected in the backing list. Index-based mutation operations are not supported.
| Field Summary | |
|---|---|
private IndexedXMLObjectChildrenList<ElementType> |
backingList
List that backs this view. |
private QName |
index
Index that points to the list, in the backing list, that this view operates on. |
private List<ElementType> |
indexList
List, in the backing list, that the given index points to. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ListView(IndexedXMLObjectChildrenList<ElementType> newBackingList,
QName newIndex)
Constructor. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(ElementType o)
|
|
void |
add(int newIndex,
ElementType element)
|
|
boolean |
addAll(Collection<? extends ElementType> c)
|
|
boolean |
addAll(int index,
Collection<? extends ElementType> c)
|
|
void |
clear()
|
|
boolean |
contains(Object element)
Checks to see if the given element is contained in this list. |
|
boolean |
containsAll(Collection<?> c)
|
|
ElementType |
get(int newIndex)
|
|
int |
indexOf(Object o)
|
|
boolean |
isEmpty()
|
|
int |
lastIndexOf(Object o)
|
|
ElementType |
remove(int newIndex)
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
ElementType |
set(int newIndex,
ElementType element)
|
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private IndexedXMLObjectChildrenList<ElementType extends XMLObject> backingList
private QName index
private List<ElementType extends XMLObject> indexList
| Constructor Detail |
|---|
public ListView(IndexedXMLObjectChildrenList<ElementType> newBackingList,
QName newIndex)
newBackingList - the list that backs this viewnewIndex - the element schema type or name of the sublist this view operates on| Method Detail |
|---|
public boolean add(ElementType o)
add in interface Collection<ElementType extends XMLObject>add in interface List<ElementType extends XMLObject>add in class AbstractList<ElementType extends XMLObject>
public void add(int newIndex,
ElementType element)
add in interface List<ElementType extends XMLObject>add in class AbstractList<ElementType extends XMLObject>public boolean addAll(Collection<? extends ElementType> c)
addAll in interface Collection<ElementType extends XMLObject>addAll in interface List<ElementType extends XMLObject>addAll in class AbstractCollection<ElementType extends XMLObject>
public boolean addAll(int index,
Collection<? extends ElementType> c)
addAll in interface List<ElementType extends XMLObject>addAll in class AbstractList<ElementType extends XMLObject>public void clear()
clear in interface Collection<ElementType extends XMLObject>clear in interface List<ElementType extends XMLObject>clear in class AbstractList<ElementType extends XMLObject>public boolean contains(Object element)
contains in interface Collection<ElementType extends XMLObject>contains in interface List<ElementType extends XMLObject>contains in class AbstractCollection<ElementType extends XMLObject>element - the element to check for
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<ElementType extends XMLObject>containsAll in interface List<ElementType extends XMLObject>containsAll in class AbstractCollection<ElementType extends XMLObject>public ElementType get(int newIndex)
get in interface List<ElementType extends XMLObject>get in class AbstractList<ElementType extends XMLObject>public int indexOf(Object o)
indexOf in interface List<ElementType extends XMLObject>indexOf in class AbstractList<ElementType extends XMLObject>public boolean isEmpty()
isEmpty in interface Collection<ElementType extends XMLObject>isEmpty in interface List<ElementType extends XMLObject>isEmpty in class AbstractCollection<ElementType extends XMLObject>public int lastIndexOf(Object o)
lastIndexOf in interface List<ElementType extends XMLObject>lastIndexOf in class AbstractList<ElementType extends XMLObject>public ElementType remove(int newIndex)
remove in interface List<ElementType extends XMLObject>remove in class AbstractList<ElementType extends XMLObject>public boolean remove(Object o)
remove in interface Collection<ElementType extends XMLObject>remove in interface List<ElementType extends XMLObject>remove in class AbstractCollection<ElementType extends XMLObject>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<ElementType extends XMLObject>removeAll in interface List<ElementType extends XMLObject>removeAll in class AbstractCollection<ElementType extends XMLObject>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<ElementType extends XMLObject>retainAll in interface List<ElementType extends XMLObject>retainAll in class AbstractCollection<ElementType extends XMLObject>
public ElementType set(int newIndex,
ElementType element)
set in interface List<ElementType extends XMLObject>set in class AbstractList<ElementType extends XMLObject>public int size()
size in interface Collection<ElementType extends XMLObject>size in interface List<ElementType extends XMLObject>size in class AbstractCollection<ElementType extends XMLObject>public Object[] toArray()
toArray in interface Collection<ElementType extends XMLObject>toArray in interface List<ElementType extends XMLObject>toArray in class AbstractCollection<ElementType extends XMLObject>public <T> T[] toArray(T[] a)
toArray in interface Collection<ElementType extends XMLObject>toArray in interface List<ElementType extends XMLObject>toArray in class AbstractCollection<ElementType extends XMLObject>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||