com.sas.dataselectors.filters.tree
Class StepModelToLogicTreeTransform

com.sas.dataselectors.filters.tree.StepModelToLogicTreeTransform
All Implemented Interfaces:
com.sas.util.transforms.TransformInterface, java.io.Serializable

public class StepModelToLogicTreeTransform
implements com.sas.util.transforms.TransformInterface

TODO Supply JavaDoc for class

See Also:
Serialized Form

Constructor Summary
StepModelToLogicTreeTransform()
           
StepModelToLogicTreeTransform(FilterObjectFactoryInterface factory)
           
StepModelToLogicTreeTransform(FilterObjectFactoryInterface factory, FilterItemListInterface filterItemList)
           
 
Method Summary
 com.sas.iquery.metadata.business.DataItem getDataItem()
           
 FilterObjectFactoryInterface getFactory()
           
protected  LogicalConditionNode newLogicalConditionNode(java.lang.Object userObject, ConditionalRelationType lc, boolean explicitlyCreated)
          Creates a new LogicalConditionNode from the given properties.
protected  NotNode newNotNode(java.lang.Object userObject)
          Creates a new NotNode and assigns the specified user object to it.
 void setDataItem(com.sas.iquery.metadata.business.DataItem dataItem)
           
 void setFactory(FilterObjectFactoryInterface factory)
           
 java.lang.Object transform(java.lang.Object o)
          Transforms the given object into a DefaultFilterLogicTree instance.
protected  AbstractFilterLogicBaseNode transformStep(com.sas.iquery.metadata.business.step.CompoundStep step)
          Attempts to transform the given compound step.
protected  AbstractFilterLogicBaseNode transformStep(com.sas.iquery.metadata.business.step.CompoundStep step, boolean explicitlyCreated)
          Attempts to transform the given compound step.
protected  AbstractFilterLogicBaseNode transformStep(com.sas.iquery.metadata.business.step.StepInterface step)
          Attempts to transform any StepInterface specified.
 

Constructor Detail

StepModelToLogicTreeTransform

public StepModelToLogicTreeTransform()

StepModelToLogicTreeTransform

public StepModelToLogicTreeTransform(FilterObjectFactoryInterface factory)

StepModelToLogicTreeTransform

public StepModelToLogicTreeTransform(FilterObjectFactoryInterface factory,
                                     FilterItemListInterface filterItemList)
Method Detail

getFactory

public FilterObjectFactoryInterface getFactory()
Returns:

setFactory

public void setFactory(FilterObjectFactoryInterface factory)
Parameters:
factory -

getDataItem

public com.sas.iquery.metadata.business.DataItem getDataItem()
Returns:

setDataItem

public void setDataItem(com.sas.iquery.metadata.business.DataItem dataItem)
Parameters:
dataItem -

transform

public java.lang.Object transform(java.lang.Object o)
                           throws com.sas.util.transforms.TransformException
Transforms the given object into a DefaultFilterLogicTree instance.

Specified by:
transform in interface com.sas.util.transforms.TransformInterface
Returns:
a new DefaultFilterLogicTree representing the specified filter step
Throws:
com.sas.util.transforms.TransformException

transformStep

protected AbstractFilterLogicBaseNode transformStep(com.sas.iquery.metadata.business.step.StepInterface step)
Attempts to transform any StepInterface specified.

Parameters:
step - the step to process
Returns:
the tree node that is the root of the logic tree representing the given step

transformStep

protected AbstractFilterLogicBaseNode transformStep(com.sas.iquery.metadata.business.step.CompoundStep step)
Attempts to transform the given compound step.

Parameters:
step - the step to process
Returns:
the tree node that is the root of the logic tree representing the given step

transformStep

protected AbstractFilterLogicBaseNode transformStep(com.sas.iquery.metadata.business.step.CompoundStep step,
                                                    boolean explicitlyCreated)
Attempts to transform the given compound step.

Parameters:
step - the step to process
explicitlyCreated - a flag to indicate whether a grouping was explicitly created or not.
Returns:
the tree node that is the root of the logic tree representing the given step

newLogicalConditionNode

protected LogicalConditionNode newLogicalConditionNode(java.lang.Object userObject,
                                                       ConditionalRelationType lc,
                                                       boolean explicitlyCreated)
Creates a new LogicalConditionNode from the given properties.

Parameters:
userObject - an optional object to store w/ the node
lc - the conditional relation type to assign to the node
explicitlyCreated - a flag to specify if this node should be considered explicitly created by the user
Returns:
the new node

newNotNode

protected NotNode newNotNode(java.lang.Object userObject)
Creates a new NotNode and assigns the specified user object to it.

Parameters:
userObject - an optional object to store w/ the node
Returns:
the new node



Copyright © 2009 SAS Institute Inc. All Rights Reserved.