|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.dataselectors.filters.tree.LogicTreeToFilterItemTransform
public class LogicTreeToFilterItemTransform
This transform takes a FilterLogicTreeInterface object (or it's root node) and transforms it into the corresponding BIQ FilterItem tree model. New objects are created every time a BIQ model object is required.
| Constructor Summary | |
|---|---|
LogicTreeToFilterItemTransform()
Constructs a new transform without supplying a factory for BIQ model objects. |
|
LogicTreeToFilterItemTransform(FilterObjectFactoryInterface factory)
Constructs a new transform and supplies the factory for BIQ model objects. |
|
| Method Summary | |
|---|---|
protected com.sas.iquery.metadata.expr.ConditionalRelationType |
convertLogicalCondition(ConditionalRelationType type)
|
protected com.sas.iquery.metadata.business.CompoundFilter |
createCompoundFilter(LogicalConditionNodeInterface node)
|
protected com.sas.iquery.metadata.business.FilterItem |
createFilterItem(FilterLogicBaseNodeInterface node,
com.sas.iquery.metadata.expr.ExpressionInterface expr)
|
FilterObjectFactoryInterface |
getFactory()
Returns the factory used when creating new BIQ filter model objects. |
protected com.sas.iquery.metadata.business.CompoundFilter |
newCompoundFilter()
|
protected com.sas.iquery.metadata.business.CompoundFilter |
newCompoundFilter(ConditionalRelationType relationship)
|
protected com.sas.iquery.metadata.expr.ExpressionInterface |
newFilterExpression(FilterLogicTestNodeInterface testNode)
Creates and returns a new ConditionalExpression object from the given test node. |
protected com.sas.iquery.metadata.business.FilterItem |
newFilterItem()
|
protected com.sas.iquery.metadata.expr.MultipleConditionalExpression |
newMultipleConditionalExpression()
|
protected com.sas.iquery.metadata.expr.MultipleConditionalExpression |
newMultipleConditionalExpression(ConditionalRelationType relationship)
|
protected java.lang.Object |
processLogicalConditionNode(LogicalConditionNodeInterface root)
|
protected java.lang.Object |
processNode(FilterLogicBaseNodeInterface root)
|
protected java.lang.Object |
processNotNode(NotNodeInterface root)
|
protected java.lang.Object |
processTestNode(FilterLogicTestNodeInterface testNode)
|
void |
setFactory(FilterObjectFactoryInterface factory)
Sets the BIQ filter model object factory. |
java.lang.Object |
transform(java.lang.Object source)
Attempts to transform the given Object into a BIQ filter model object. |
protected boolean |
updateFilterItem(com.sas.iquery.metadata.business.FilterItem filterItem,
FilterLogicTestNodeInterface testNode)
|
protected void |
updateFilterItem(com.sas.iquery.metadata.business.FilterItem filterItem,
java.lang.String name,
java.lang.String description,
com.sas.iquery.metadata.expr.ExpressionInterface expr)
|
| Constructor Detail |
|---|
public LogicTreeToFilterItemTransform()
public LogicTreeToFilterItemTransform(FilterObjectFactoryInterface factory)
factory - the factory to use when creating new BIQ model objects| Method Detail |
|---|
public FilterObjectFactoryInterface getFactory()
public void setFactory(FilterObjectFactoryInterface factory)
factory - the factory to use when creating new BIQ filter model objects
public java.lang.Object transform(java.lang.Object source)
throws com.sas.util.transforms.TransformException
transform in interface com.sas.util.transforms.TransformInterfacesource - the object to transform
com.sas.util.transforms.TransformException - in the event of any exception that halts the transformation
java.lang.IllegalArgumentException - if the source object is not a FilterLogicTreeInterface
or FilterLogicBaseNodeInterface object
protected java.lang.Object processNode(FilterLogicBaseNodeInterface root)
throws com.sas.util.transforms.TransformException
root -
com.sas.util.transforms.TransformException
protected java.lang.Object processNotNode(NotNodeInterface root)
throws com.sas.util.transforms.TransformException
com.sas.util.transforms.TransformException
protected java.lang.Object processLogicalConditionNode(LogicalConditionNodeInterface root)
throws com.sas.util.transforms.TransformException
com.sas.util.transforms.TransformException
protected com.sas.iquery.metadata.business.FilterItem createFilterItem(FilterLogicBaseNodeInterface node,
com.sas.iquery.metadata.expr.ExpressionInterface expr)
throws com.sas.util.transforms.TransformException
com.sas.util.transforms.TransformExceptionprotected com.sas.iquery.metadata.business.CompoundFilter createCompoundFilter(LogicalConditionNodeInterface node)
protected java.lang.Object processTestNode(FilterLogicTestNodeInterface testNode)
protected com.sas.iquery.metadata.expr.ConditionalRelationType convertLogicalCondition(ConditionalRelationType type)
type - the data selectors model logical condition
protected boolean updateFilterItem(com.sas.iquery.metadata.business.FilterItem filterItem,
FilterLogicTestNodeInterface testNode)
filter - testNode -
protected void updateFilterItem(com.sas.iquery.metadata.business.FilterItem filterItem,
java.lang.String name,
java.lang.String description,
com.sas.iquery.metadata.expr.ExpressionInterface expr)
throws com.sas.iquery.metadata.MetadataException
com.sas.iquery.metadata.MetadataExceptionprotected com.sas.iquery.metadata.business.FilterItem newFilterItem()
protected com.sas.iquery.metadata.business.CompoundFilter newCompoundFilter()
protected com.sas.iquery.metadata.business.CompoundFilter newCompoundFilter(ConditionalRelationType relationship)
protected com.sas.iquery.metadata.expr.MultipleConditionalExpression newMultipleConditionalExpression()
protected com.sas.iquery.metadata.expr.MultipleConditionalExpression newMultipleConditionalExpression(ConditionalRelationType relationship)
protected com.sas.iquery.metadata.expr.ExpressionInterface newFilterExpression(FilterLogicTestNodeInterface testNode)
testNode - the test node to process
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||