|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.tree.SimpleFilterLogicTree
public class SimpleFilterLogicTree
Field Summary | |
---|---|
protected java.lang.String |
description
|
protected java.lang.String |
label
|
protected java.util.List |
testNodes
|
Fields inherited from class com.sas.dataselectors.filters.DefaultFilterLogicTree |
---|
DEBUG, markGroups, modifiable, modified |
Fields inherited from interface com.sas.dataselectors.filters.SimpleFilterLogicInterface |
---|
ADD_AT_END |
Constructor Summary | |
---|---|
SimpleFilterLogicTree()
|
|
SimpleFilterLogicTree(FilterLogicBaseNodeInterface root)
|
|
SimpleFilterLogicTree(FilterLogicBaseNodeInterface root,
boolean standardize)
|
|
SimpleFilterLogicTree(FilterLogicTreeInterface otherTree)
|
Method Summary | |
---|---|
boolean |
addLeaf(int index,
FilterLogicTestNodeInterface testNode)
Add a new test node at the given index in the list of understood test nodes. |
boolean |
canGroupLeaves(int startIndex,
int endIndex)
Returns TRUE if the leaves (or the groups they're members of) at the given indices can be grouped together. |
FilterLogicTreeInterface |
copy()
|
ConditionalRelationType |
getConditionalRelationType(int index)
Gets the logical relationship between the leaf at the given index and the leaf at the next index. |
java.util.List |
getFilterList()
Returns the list of filter test nodes. |
java.lang.String |
getFilterListDescription()
Returns the description for this logic list. |
java.lang.String |
getFilterListLabel()
Returns the label for this logic list. |
FilterLogicTestNodeInterface |
getLeaf(int i)
|
int |
getLeafCount()
|
FilterLogicBaseNodeInterface |
getNodeByIndex(int index)
|
boolean |
groupLeaves(int startIndex,
int endIndex)
Groups the leaves (including any groups they are members of) at the specified locations together (along with any nodes in between them). |
boolean |
isLeafGrouped(int index)
Returns TRUE if the leaf at the given index is part of a group. |
boolean |
isLeafNegated(int index)
Returns TRUE if the leaf at the given index has been negated, FALSE otherwise. |
boolean |
moveLeafDown(int index)
Moves the leaf at the given index down a position in the list of leaves. |
boolean |
moveLeafUp(int index)
Moves the leaf at the given index up a position in the list of leaves. |
void |
refreshFilterList()
Refreshes the list of leaf nodes in the tree. |
FilterLogicTestNodeInterface |
removeLeaf(int index)
Removes the test node at the given index. |
void |
setConditionalRelationType(int index,
ConditionalRelationType value)
Sets the logical relationship between the leaf at the given index and the leaf at the next index. |
void |
setFilterListDescription(java.lang.String value)
|
void |
setFilterListLabel(java.lang.String value)
|
boolean |
setFilterObject(java.lang.Object filterObject)
Transforms the given filter object (from the native filter model) into a network of filter logic nodes used to represent the filter within the filter selector model. |
FilterLogicTestNodeInterface |
setLeaf(int index,
FilterLogicTestNodeInterface testNode)
Sets the test node at the given index in the list of understood test nodes. |
void |
setLeafNegated(int index,
boolean value)
Sets the negation flag for the leaf at the given index. |
boolean |
splitOnMember(int indexOfMember)
Splits the inner-most group containing the leaf at the specified index. |
java.lang.String |
toString()
|
Methods inherited from class com.sas.dataselectors.filters.DefaultFilterLogicTree |
---|
add, applyAdd, applyAnd, applyDelete, applyGroup, applyMoveDown, applyMoveUp, applyNot, applyOr, applySplit, canGroup, canMoveDown, canMoveDown, canMoveUp, canMoveUp, canSplit, clear, copyChildren, destroy, getConditionalRelationType, getMutableTreeNode, getOuterMostGroupRoot, getQueryStandardization, group, insertNodeInto, isGrouped, isModifiable, isModified, isNegated, moveDown, moveUp, negate, newLogicalConditionNode, newLogicalConditionNode, newNotNode, printTree, removeNode, replaceNode, setModifiable, setNegated, setQueryStandardization, setRoot, split |
Methods inherited from interface com.sas.dataselectors.filters.SimpleFilterLogicInterface |
---|
clear, isModifiable, isModified |
Field Detail |
---|
protected java.util.List testNodes
protected java.lang.String label
protected java.lang.String description
Constructor Detail |
---|
public SimpleFilterLogicTree()
public SimpleFilterLogicTree(FilterLogicBaseNodeInterface root)
root
- public SimpleFilterLogicTree(FilterLogicBaseNodeInterface root, boolean standardize)
public SimpleFilterLogicTree(FilterLogicTreeInterface otherTree)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getFilterListLabel()
FilterLogicListInterface
getFilterListLabel
in interface FilterLogicListInterface
public void setFilterListLabel(java.lang.String value)
public java.lang.String getFilterListDescription()
FilterLogicListInterface
getFilterListDescription
in interface FilterLogicListInterface
public void setFilterListDescription(java.lang.String value)
public FilterLogicBaseNodeInterface getNodeByIndex(int index)
public boolean isLeafGrouped(int index)
isLeafGrouped
in interface SimpleFilterLogicInterface
index
- the index in the list of understood nodes of the leaf to check
public FilterLogicTestNodeInterface removeLeaf(int index)
removeLeaf
in interface SimpleFilterLogicInterface
index
- the index of the test node, in the list of understood nodes,
to be removed
public void setConditionalRelationType(int index, ConditionalRelationType value)
setConditionalRelationType
in interface SimpleFilterLogicInterface
index
- the index of the first leaf in the pairvalue
- the logical conditionpublic ConditionalRelationType getConditionalRelationType(int index)
SimpleFilterLogicInterface
getConditionalRelationType
in interface SimpleFilterLogicInterface
index
- the index of the first leaf in the pair
public void refreshFilterList()
refreshFilterList
in interface SimpleFilterLogicInterface
public java.util.List getFilterList()
FilterLogicListInterface
getFilterList
in interface FilterLogicListInterface
public void setLeafNegated(int index, boolean value)
setLeafNegated
in interface SimpleFilterLogicInterface
index
- the index of the leaf to modifyvalue
- the new value for the negation flag for that leafpublic boolean isLeafNegated(int index)
SimpleFilterLogicInterface
isLeafNegated
in interface SimpleFilterLogicInterface
index
- the index of the leaf to examine
public boolean canGroupLeaves(int startIndex, int endIndex)
canGroupLeaves
in interface SimpleFilterLogicInterface
startIndex
- the start of the new groupendIndex
- the end of the new group
public boolean groupLeaves(int startIndex, int endIndex)
groupLeaves
in interface SimpleFilterLogicInterface
startIndex
- the start of the new groupendIndex
- the end of the new grouppublic boolean splitOnMember(int indexOfMember)
splitOnMember
in interface SimpleFilterLogicInterface
indexOfMember
- the index of a member of the group to be splitpublic boolean moveLeafUp(int index)
moveLeafUp
in interface SimpleFilterLogicInterface
index
- the index of the leaf to manipulatepublic boolean moveLeafDown(int index)
moveLeafDown
in interface SimpleFilterLogicInterface
index
- the index of the leaf to manipulatepublic FilterLogicTestNodeInterface setLeaf(int index, FilterLogicTestNodeInterface testNode)
setLeaf
in interface SimpleFilterLogicInterface
index
- the index in the list at which the new node will be settestNode
- the new node to put at the given index
public boolean addLeaf(int index, FilterLogicTestNodeInterface testNode)
addLeaf
in interface SimpleFilterLogicInterface
index
- the index in the list at which the new node will be insertedtestNode
- the new node to add
public int getLeafCount()
getLeafCount
in interface SimpleFilterLogicInterface
public FilterLogicTestNodeInterface getLeaf(int i)
getLeaf
in interface SimpleFilterLogicInterface
i
- the index of the leaf to retrieve
public boolean setFilterObject(java.lang.Object filterObject)
setFilterObject
in interface SimpleFilterLogicInterface
filterObject
- the filter object to process
public FilterLogicTreeInterface copy()
copy
in interface FilterLogicTreeInterface
copy
in class DefaultFilterLogicTree
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |