|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.dataselectors.filters.DefaultFilterLogicList
|
+--com.sas.dataselectors.filters.AbstractSimpleLogicListAdapterBase
This class extends a filter logic list implementation to provide a base for SimpleLogicListAdapterInterface implementations adding convenient access to a filter's logic as a flat list of logic test nodes.
| Constructor Summary | |
AbstractSimpleLogicListAdapterBase()
Constructor for AbstractSimpleLogicListAdapterBase. |
|
| 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 element)
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. |
List |
getFilterList()
Returns the list of filters. |
FilterLogicListInterface |
getFilterLogicList()
Returns a FilterLogicListInterface that is the head of the test node list |
Object |
getRootFilterObject()
Returns the native filter object. |
int |
hashCode()
|
int |
indexOf(Object element)
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 element)
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 element)
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 collection)
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. |
void |
setFilterItemList(FilterItemListInterface filterItemList)
Sets the filter item list for this adapter. |
void |
setFilterList(List values)
Sets the list of filters. |
void |
setFilterList(SimpleLogicListInterface model)
Sets the model containing the list of filters. |
int |
size()
|
List |
subList(int startIndex,
int endIndex)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
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 com.sas.dataselectors.filters.DefaultFilterLogicList |
getFilterListDescription, getFilterListLabel, setFilterListDescription, setFilterListLabel, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractSimpleLogicListAdapterBase()
| Method Detail |
public abstract boolean commitChanges()
commitChanges in interface SimpleLogicListInterfacepublic FilterLogicListInterface getFilterLogicList()
getFilterLogicList in interface SimpleLogicListAdapterInterfaceDefaultFilterLogicListpublic FilterItemListInterface getFilterItemList()
getFilterItemList in interface SimpleLogicListInterfacepublic void setFilterItemList(FilterItemListInterface filterItemList)
filterItemList - the new filter item listpublic List getFilterList()
getFilterList in class DefaultFilterLogicListpublic void setFilterList(SimpleLogicListInterface model)
model - the new filter list modelpublic void setFilterList(List values)
setFilterList in class DefaultFilterLogicListvalues - the new filter listpublic Object getRootFilterObject()
getRootFilterObject in interface SimpleLogicListInterfacepublic void clear()
clear in interface Listclear in class DefaultFilterLogicListCollection.clear()
public void add(int index,
Object element)
add in interface Listadd in class DefaultFilterLogicListindex - the index for the elementelement - the element to add to the listList.add(int, Object)
public Object set(int index,
Object element)
set in interface Listset in class DefaultFilterLogicListindex - the index for the elementelement - the element to assign to the listList.set(int, Object)public Object remove(int index)
remove in interface Listremove in class DefaultFilterLogicListindex - the index of the objectpublic Object get(int index)
get in interface Listget in class DefaultFilterLogicListindex - the index of the object
public boolean addAll(int index,
Collection collection)
addAll in interface ListaddAll in class DefaultFilterLogicListindex - 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 ListcontainsAll in class DefaultFilterLogicListcollection - 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 ListremoveAll in class DefaultFilterLogicListcollection - 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 element)
remove in interface Listremove in class DefaultFilterLogicListobject - 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 Listadd in class DefaultFilterLogicListelement - the element whose presence in this collection is to be ensured.Collection.add(Object)public boolean retainAll(Collection collection)
retainAll in interface ListretainAll in class DefaultFilterLogicListc - 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 ListaddAll in class DefaultFilterLogicListc - elements to be inserted into this collection.add(Object),
Collection.addAll(Collection)
public List subList(int startIndex,
int endIndex)
The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is structurally modified in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.)
subList in interface ListsubList in class DefaultFilterLogicListfromIndex - low endpoint (inclusive) of the subList.toIndex - high endpoint (exclusive) of the subList.IndexOutOfBoundsException - for an illegal endpoint index value
(fromIndex < 0 || toIndex > size || fromIndex > toIndex).List.subList(int, int)public Iterator iterator()
iterator in interface Listiterator in class DefaultFilterLogicListCollection.iterator()public ListIterator listIterator()
listIterator in interface ListlistIterator in class DefaultFilterLogicListList.listIterator()public ListIterator listIterator(int index)
listIterator in interface ListlistIterator in class DefaultFilterLogicListindex - the initial position for the new iteratorList.listIterator(int)public boolean contains(Object element)
contains in interface Listcontains in class DefaultFilterLogicListelement - the element to search forCollection.contains(Object)public int indexOf(Object element)
indexOf in interface ListindexOf in class DefaultFilterLogicListo - element to search for.List.indexOf(Object)public boolean equals(Object element)
equals in interface Listequals in class DefaultFilterLogicListo - Object to be compared for equality with this collection.Object.equals(Object),
Set.equals(Object),
List.equals(Object),
Collection.equals(Object)public boolean isEmpty()
isEmpty in interface ListisEmpty in class DefaultFilterLogicListCollection.isEmpty()public int lastIndexOf(Object element)
lastIndexOf in interface ListlastIndexOf in class DefaultFilterLogicListo - element to search for.public int size()
size in interface Listsize in class DefaultFilterLogicListCollection.size()public Object[] toArray()
toArray in interface ListtoArray in class DefaultFilterLogicListCollection.toArray()public Object[] toArray(Object[] p1)
toArray in interface ListtoArray in class DefaultFilterLogicLista - 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[])public int hashCode()
hashCode in interface ListhashCode in class DefaultFilterLogicListObject.hashCode()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||