|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.dataselectors.filters.AbstractSimpleLogicListAdapterBase
@SASScope(value="ALL") public abstract class 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.
| Field Summary | |
|---|---|
protected FilterItemListInterface |
_filterItemList
|
protected SimpleLogicListInterface |
_filterItemSimpleList
|
| Constructor Summary | |
|---|---|
AbstractSimpleLogicListAdapterBase()
Constructor for AbstractSimpleLogicListAdapterBase. |
|
| Method Summary | |
|---|---|
void |
add(int index,
java.lang.Object element)
Adds the specified element at the specified position in the list by updating the underlying tree. |
boolean |
add(java.lang.Object element)
Ensures that this collection contains the specified element (optional operation). |
boolean |
addAll(java.util.Collection collection)
Adds all of the elements in the specified collection to this collection (optional operation). |
boolean |
addAll(int index,
java.util.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(java.lang.Object element)
|
boolean |
containsAll(java.util.Collection collection)
Returns true if this collection contains all of the elements in the specified collection. |
boolean |
equals(java.lang.Object element)
Compares the specified object with this collection for equality. |
java.lang.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. |
java.util.List |
getFilterList()
Returns the list of filters. |
FilterLogicListInterface |
getFilterLogicList()
Returns a FilterLogicListInterface that is the head of the test node list |
java.lang.Object |
getRootFilterObject()
Returns the native filter object. |
int |
hashCode()
|
int |
indexOf(java.lang.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()
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.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. |
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
Removes the object at the specified index from the list. |
boolean |
remove(java.lang.Object element)
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
boolean |
removeAll(java.util.Collection collection)
Removes all this collection's elements that are also contained in the specified collection (optional operation). |
boolean |
retainAll(java.util.Collection collection)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
java.lang.Object |
set(int index,
java.lang.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(java.util.List values)
Sets the list of filters. |
void |
setFilterList(SimpleLogicListInterface model)
Sets the model containing the list of filters. |
int |
size()
|
java.util.List |
subList(int startIndex,
int endIndex)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.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 |
| Field Detail |
|---|
protected SimpleLogicListInterface _filterItemSimpleList
protected FilterItemListInterface _filterItemList
| 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 java.util.List getFilterList()
getFilterList in interface FilterLogicListInterfacegetFilterList in class DefaultFilterLogicListpublic void setFilterList(SimpleLogicListInterface model)
model - the new filter list modelpublic void setFilterList(java.util.List values)
setFilterList in class DefaultFilterLogicListvalues - the new filter listpublic java.lang.Object getRootFilterObject()
getRootFilterObject in interface SimpleLogicListInterfacepublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear in class DefaultFilterLogicListCollection.clear()
public void add(int index,
java.lang.Object element)
add in interface java.util.Listadd in class DefaultFilterLogicListindex - the index for the elementelement - the element to add to the listList.add(int, Object)
public java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.Listset in class DefaultFilterLogicListindex - the index for the elementelement - the element to assign to the list
List.set(int, Object)public java.lang.Object remove(int index)
remove in interface java.util.Listremove in class DefaultFilterLogicListindex - the index of the object
public java.lang.Object get(int index)
get in interface java.util.Listget in class DefaultFilterLogicListindex - the index of the object
public boolean addAll(int index,
java.util.Collection collection)
addAll in interface java.util.ListaddAll in class DefaultFilterLogicListindex - the index in this list to begin inserting elements atcollection - the collection of elements to add to this list
public boolean containsAll(java.util.Collection collection)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.ListcontainsAll in class DefaultFilterLogicListcollection - the collection to be checked for containment in this collection.
java.lang.NullPointerException - if the specified collection is
null.Collection.containsAll(Collection)public boolean removeAll(java.util.Collection collection)
removeAll in interface java.util.CollectionremoveAll in interface java.util.ListremoveAll in class DefaultFilterLogicListcollection - the elements to be removed from this collection.
java.lang.NullPointerException - if the specified collection is
null.Collection.remove(Object),
Collection.contains(Object),
Collection.removeAll(Collection)public boolean remove(java.lang.Object element)
remove in interface java.util.Collectionremove in interface java.util.Listremove in class DefaultFilterLogicListobject - the element to be removed from this collection, if present.
Collection.remove(Object)public boolean add(java.lang.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 java.util.Collectionadd in interface java.util.Listadd in class DefaultFilterLogicListelement - the element whose presence in this collection is to be ensured.
Collection.add(Object)public boolean retainAll(java.util.Collection collection)
retainAll in interface java.util.CollectionretainAll in interface java.util.ListretainAll in class DefaultFilterLogicListc - elements to be retained in this collection.
java.lang.NullPointerException - if the specified collection is
null.remove(Object),
contains(Object),
Collection.retainAll(Collection)public boolean addAll(java.util.Collection collection)
addAll in interface java.util.CollectionaddAll in interface java.util.ListaddAll in class DefaultFilterLogicListc - elements to be inserted into this collection.
add(Object),
Collection.addAll(Collection)
public java.util.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 java.util.ListsubList in class DefaultFilterLogicListfromIndex - low endpoint (inclusive) of the subList.toIndex - high endpoint (exclusive) of the subList.
java.lang.IndexOutOfBoundsException - for an illegal endpoint index value
(fromIndex < 0 || toIndex > size || fromIndex > toIndex).List.subList(int, int)public java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in class DefaultFilterLogicListCollection.iterator()public java.util.ListIterator listIterator()
listIterator in interface java.util.ListlistIterator in class DefaultFilterLogicListList.listIterator()public java.util.ListIterator listIterator(int index)
listIterator in interface java.util.ListlistIterator in class DefaultFilterLogicListindex - the initial position for the new iterator
List.listIterator(int)public boolean contains(java.lang.Object element)
contains in interface java.util.Collectioncontains in interface java.util.Listcontains in class DefaultFilterLogicListelement - the element to search for
Collection.contains(Object)public int indexOf(java.lang.Object element)
indexOf in interface java.util.ListindexOf in class DefaultFilterLogicListo - element to search for.
List.indexOf(Object)public boolean equals(java.lang.Object element)
equals in interface java.util.Collectionequals in interface java.util.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 java.util.CollectionisEmpty in interface java.util.ListisEmpty in class DefaultFilterLogicListCollection.isEmpty()public int lastIndexOf(java.lang.Object element)
lastIndexOf in interface java.util.ListlastIndexOf in class DefaultFilterLogicListo - element to search for.
public int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class DefaultFilterLogicListCollection.size()public java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class DefaultFilterLogicListCollection.toArray()public java.lang.Object[] toArray(java.lang.Object[] p1)
toArray in interface java.util.CollectiontoArray in interface java.util.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.
java.lang.ArrayStoreException - the runtime type of the specified array is
not a supertype of the runtime type of every element in this
collection.
java.lang.NullPointerException - if the specified array is null.Collection.toArray(Object[])public int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.ListhashCode in class DefaultFilterLogicListObject.hashCode()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||