|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.AbstractSimpleLogicListAdapterBase
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 SimpleLogicListInterface
public FilterLogicListInterface getFilterLogicList()
getFilterLogicList
in interface SimpleLogicListAdapterInterface
DefaultFilterLogicList
public FilterItemListInterface getFilterItemList()
getFilterItemList
in interface SimpleLogicListInterface
public void setFilterItemList(FilterItemListInterface filterItemList)
filterItemList
- the new filter item listpublic java.util.List getFilterList()
getFilterList
in interface FilterLogicListInterface
getFilterList
in class DefaultFilterLogicList
public void setFilterList(SimpleLogicListInterface model)
model
- the new filter list modelpublic void setFilterList(java.util.List values)
setFilterList
in class DefaultFilterLogicList
values
- the new filter listpublic java.lang.Object getRootFilterObject()
getRootFilterObject
in interface SimpleLogicListInterface
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class DefaultFilterLogicList
Collection.clear()
public void add(int index, java.lang.Object element)
add
in interface java.util.List
add
in class DefaultFilterLogicList
index
- 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.List
set
in class DefaultFilterLogicList
index
- 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.List
remove
in class DefaultFilterLogicList
index
- the index of the object
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class DefaultFilterLogicList
index
- the index of the object
public boolean addAll(int index, java.util.Collection collection)
addAll
in interface java.util.List
addAll
in class DefaultFilterLogicList
index
- 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.Collection
containsAll
in interface java.util.List
containsAll
in class DefaultFilterLogicList
collection
- 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.Collection
removeAll
in interface java.util.List
removeAll
in class DefaultFilterLogicList
collection
- 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.Collection
remove
in interface java.util.List
remove
in class DefaultFilterLogicList
object
- 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.Collection
add
in interface java.util.List
add
in class DefaultFilterLogicList
element
- 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.Collection
retainAll
in interface java.util.List
retainAll
in class DefaultFilterLogicList
c
- 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.Collection
addAll
in interface java.util.List
addAll
in class DefaultFilterLogicList
c
- 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.List
subList
in class DefaultFilterLogicList
fromIndex
- 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.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
iterator
in class DefaultFilterLogicList
Collection.iterator()
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
listIterator
in class DefaultFilterLogicList
List.listIterator()
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
listIterator
in class DefaultFilterLogicList
index
- the initial position for the new iterator
List.listIterator(int)
public boolean contains(java.lang.Object element)
contains
in interface java.util.Collection
contains
in interface java.util.List
contains
in class DefaultFilterLogicList
element
- the element to search for
Collection.contains(Object)
public int indexOf(java.lang.Object element)
indexOf
in interface java.util.List
indexOf
in class DefaultFilterLogicList
o
- element to search for.
List.indexOf(Object)
public boolean equals(java.lang.Object element)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class DefaultFilterLogicList
o
- 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.Collection
isEmpty
in interface java.util.List
isEmpty
in class DefaultFilterLogicList
Collection.isEmpty()
public int lastIndexOf(java.lang.Object element)
lastIndexOf
in interface java.util.List
lastIndexOf
in class DefaultFilterLogicList
o
- element to search for.
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class DefaultFilterLogicList
Collection.size()
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class DefaultFilterLogicList
Collection.toArray()
public java.lang.Object[] toArray(java.lang.Object[] p1)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class DefaultFilterLogicList
a
- 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.Collection
hashCode
in interface java.util.List
hashCode
in class DefaultFilterLogicList
Object.hashCode()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |