|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.FilterItemRootToAdvancedList
public class FilterItemRootToAdvancedList
This class converts a Filter that may be a compound filter into a simple list of test nodes (via the FilterItemSimpleTree class).
Field Summary |
---|
Fields inherited from class com.sas.dataselectors.filters.AbstractFilterItemSimpleListBase |
---|
_filterItemList, _filterTestNodeList |
Constructor Summary | |
---|---|
FilterItemRootToAdvancedList(FilterItemListInterface filterItemList,
java.lang.Object rootFilterItem,
boolean enforceAsAllSameType,
FilterObjectFactoryInterface filterObjectFactory,
boolean useStepModel)
Constructs a new advanced list with the given attributes. |
|
FilterItemRootToAdvancedList(FilterItemListInterface filterItemList,
SimpleFilterLogicTreeInterface filterTree)
Constructs a new advanced list from the given sources. |
Method Summary | |
---|---|
protected void |
addTestNodeAt(int index,
FilterLogicTestNodeInterface testNode)
Adds the given test node at the specified location in the list. |
void |
clear()
Removes all of the elements from this collection (optional operation). |
boolean |
commitChanges()
Commits any changes in the filter model to the underlying native model. |
SimpleFilterLogicTreeInterface |
getFilterLogicTree()
Returns the filter logic tree for this list. |
java.lang.Object |
getRootFilterObject()
Returns the native filter object. |
protected java.lang.Object |
getTestNodeAt(int index)
Returns the test node at the specified location in the list. |
boolean |
isEmpty()
|
protected java.lang.Object |
removeTestNodeAt(int index)
Removes and returns the test node at the specified index in the list. |
SimpleFilterLogicTreeInterface |
setFilterLogicTree(SimpleFilterLogicTreeInterface newTree)
Assigns the filter logic tree for this list. |
protected java.lang.Object |
setTestNodeAt(int index,
FilterLogicTestNodeInterface testNode)
Assigns the given test node at the specified location in the list. |
int |
size()
|
Methods inherited from class com.sas.dataselectors.filters.AbstractFilterItemSimpleListBase |
---|
add, add, addAll, addAll, contains, containsAll, equals, get, getFilterItemList, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
Constructor Detail |
---|
public FilterItemRootToAdvancedList(FilterItemListInterface filterItemList, java.lang.Object rootFilterItem, boolean enforceAsAllSameType, FilterObjectFactoryInterface filterObjectFactory, boolean useStepModel)
filterItemList
- the list of filter items in the filter modelrootFilterItem
- the native filter object to processenforceAsAllSameType
- flag for restricting logical conditionsfilterObjectFactory
- the object factory used during conversions
between the filter model and native modeluseStepModel
- flag for specifying whether the native filter should
be in the step model or notpublic FilterItemRootToAdvancedList(FilterItemListInterface filterItemList, SimpleFilterLogicTreeInterface filterTree)
filterItemList
- the list of filter items in the filter modelfilterTree
- the logic tree to processMethod Detail |
---|
public boolean commitChanges()
commitChanges
in interface SimpleLogicListInterface
commitChanges
in class AbstractFilterItemSimpleListBase
public java.lang.Object getRootFilterObject()
getRootFilterObject
in interface SimpleLogicListInterface
getRootFilterObject
in class AbstractFilterItemSimpleListBase
protected java.lang.Object setTestNodeAt(int index, FilterLogicTestNodeInterface testNode)
setTestNodeAt
in class AbstractFilterItemSimpleListBase
index
- the index in the list to assign the test nodetestNode
- the test node to assign to the list
protected java.lang.Object removeTestNodeAt(int index)
removeTestNodeAt
in class AbstractFilterItemSimpleListBase
index
- the index in the list of the target test node
protected void addTestNodeAt(int index, FilterLogicTestNodeInterface testNode)
addTestNodeAt
in class AbstractFilterItemSimpleListBase
index
- the index in the list to add the test nodetestNode
- the test node to assign to the listprotected java.lang.Object getTestNodeAt(int index)
getTestNodeAt
in class AbstractFilterItemSimpleListBase
index
- the index in the list of the target test node
public SimpleFilterLogicTreeInterface getFilterLogicTree()
public SimpleFilterLogicTreeInterface setFilterLogicTree(SimpleFilterLogicTreeInterface newTree)
newTree
- the new filter logic tree
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
isEmpty
in class AbstractFilterItemSimpleListBase
Collection.isEmpty()
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class AbstractFilterItemSimpleListBase
Collection.size()
public void clear()
AbstractFilterItemSimpleListBase
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class AbstractFilterItemSimpleListBase
Collection.clear()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |