|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.dataselectors.filters.AbstractFilterItemSimpleListBase
This class is abstract implementation to manage a list of test nodes that are created from a filter item. A child class must decide how to populate the list.
| Field Summary | |
protected FilterItemListInterface |
_filterItemList
The filter item list. |
protected List |
_filterTestNodeList
The list of test nodes. |
| Constructor Summary | |
AbstractFilterItemSimpleListBase(FilterItemListInterface filterItemList)
Constructor for AbstractFilterItemSimpleListBase. |
|
| Method Summary | |
void |
add(int index,
Object element)
Adds the specified element at the specified position in the list by updating the underlying tree. |
boolean |
add(Object element)
Ensures that this collection contains the specified element (optional operation). |
boolean |
addAll(Collection collection)
Adds all of the elements in the specified collection to this collection (optional operation). |
boolean |
addAll(int index,
Collection collection)
Adds all items from the given collection to this list at the specified index. |
void |
clear()
Removes all of the elements from this collection (optional operation). |
abstract boolean |
commitChanges()
Commit any changes to the filter model and apply them to the native model. |
boolean |
contains(Object element)
|
boolean |
containsAll(Collection collection)
Returns true if this collection contains all of the elements in the specified collection. |
boolean |
equals(Object object)
Compares the specified object with this collection for equality. |
Object |
get(int index)
Returns the object at the specified index in the list. |
FilterItemListInterface |
getFilterItemList()
The list of source items in the filter model. |
abstract Object |
getRootFilterObject()
Returns the root filter object in the native model representing the completed filter selection. |
int |
hashCode()
|
int |
indexOf(Object object)
Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element. |
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object object)
Returns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element. |
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
Object |
remove(int index)
Removes the object at the specified index from the list. |
boolean |
remove(Object object)
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
boolean |
removeAll(Collection collection)
Removes all this collection's elements that are also contained in the specified collection (optional operation). |
boolean |
retainAll(Collection p1)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
Object |
set(int index,
Object element)
Inserts the specified element at the specified position in this list by updating the underlying tree. |
int |
size()
|
List |
subList(int startIndex,
int endIndex)
This method would produce a sublist of this list if it were supported. |
Object[] |
toArray()
|
Object[] |
toArray(Object[] p1)
Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected List _filterTestNodeList
protected FilterItemListInterface _filterItemList
| Constructor Detail |
public AbstractFilterItemSimpleListBase(FilterItemListInterface filterItemList)
filterItemList - the source list of filter items| Method Detail |
public abstract boolean commitChanges()
commitChanges in interface SimpleLogicListInterfacepublic abstract Object getRootFilterObject()
SimpleLogicListInterfacecommitChanges() method to construct the native filter.getRootFilterObject in interface SimpleLogicListInterfaceUnsupportedOperationException - if this is not the casepublic FilterItemListInterface getFilterItemList()
getFilterItemList in interface SimpleLogicListInterface
public Object set(int index,
Object element)
set in interface Listindex - the index for the elementelement - the element to assign to the listList.set(int, Object)
public void add(int index,
Object element)
add in interface Listindex - the index for the elementelement - the element to add to the listList.add(int, Object)public Object remove(int index)
remove in interface Listindex - the index of the objectpublic Object get(int index)
get in interface Listindex - the index of the object
public boolean addAll(int index,
Collection collection)
addAll in interface Listindex - the index in this list to begin inserting elements atcollection - the collection of elements to add to this listpublic boolean containsAll(Collection collection)
containsAll in interface Listcollection - the collection to be checked for containment in this collection.NullPointerException - if the specified collection is
null.Collection.containsAll(Collection)public boolean removeAll(Collection collection)
removeAll in interface Listcollection - the elements to be removed from this collection.NullPointerException - if the specified collection is
null.Collection.remove(Object),
Collection.contains(Object),
Collection.removeAll(Collection)public boolean remove(Object object)
remove in interface Listobject - the element to be removed from this collection, if present.Collection.remove(Object)public boolean add(Object element)
Collections that support this operation may place limitations on what elements may be added to this collection. In particular, some collections will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. Collection classes should clearly specify in their documentation any restrictions on what elements may be added.
If a collection refuses to add a particular element for any reason other than that it already contains the element, it must throw an exception (rather than returning false). This preserves the invariant that a collection always contains the specified element after this call returns.
add in interface Listelement - the element whose presence in this collection is to be ensured.Collection.add(Object)public void clear()
clear in interface ListCollection.clear()public boolean contains(Object element)
contains in interface Listelement - the element to search forCollection.contains(Object)public Iterator iterator()
iterator in interface ListCollection.iterator()public ListIterator listIterator()
listIterator in interface ListList.listIterator()public ListIterator listIterator(int index)
listIterator in interface Listindex - the initial position for the new iteratorList.listIterator(int)public boolean retainAll(Collection p1)
retainAll in interface Listc - elements to be retained in this collection.NullPointerException - if the specified collection is
null.remove(Object),
contains(Object),
Collection.retainAll(Collection)public boolean addAll(Collection collection)
addAll in interface Listc - elements to be inserted into this collection.add(Object),
Collection.addAll(Collection)
public List subList(int startIndex,
int endIndex)
subList in interface ListfromIndex - low endpoint (inclusive) of the subList.toIndex - high endpoint (exclusive) of the subList.UnsupportedOperationException - because the method is
not supported by this list at this time.public int indexOf(Object object)
indexOf in interface Listo - element to search for.List.indexOf(Object)public int lastIndexOf(Object object)
lastIndexOf in interface Listo - element to search for.public boolean equals(Object object)
equals in interface Listequals in class Objecto - Object to be compared for equality with this collection.Object.equals(Object),
Set.equals(Object),
List.equals(Object),
Collection.equals(Object)public int hashCode()
hashCode in interface ListhashCode in class ObjectObject.hashCode()public boolean isEmpty()
isEmpty in interface ListCollection.isEmpty()public int size()
size in interface ListCollection.size()public Object[] toArray()
toArray in interface ListCollection.toArray()public Object[] toArray(Object[] p1)
toArray in interface Lista - the array into which the elements of this collection are to be
stored, if it is big enough; otherwise, a new array of the same
runtime type is allocated for this purpose.ArrayStoreException - the runtime type of the specified array is
not a supertype of the runtime type of every element in this
collection.NullPointerException - if the specified array is null.Collection.toArray(Object[])
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||