***  This class is subject to change   ***

com.sas.iquery.metadata.business.step
Class CompoundStep

java.lang.Object
  |
  +--com.sas.iquery.metadata.impl.IQModelImplUtilities
        |
        +--com.sas.iquery.metadata.business.impl.AbstractBase
              |
              +--com.sas.iquery.metadata.business.impl.AbstractModelItem
                    |
                    +--com.sas.iquery.metadata.business.step.CompoundStep
All Implemented Interfaces:
Base, BusinessModelResourceReferencer, ModelItem, PropertyChangeListenee, StepInterface, UsabilityInterface

public class CompoundStep
extends AbstractModelItem
implements StepInterface

Enables a user to group a set of steps together. A compound step brings the notion of parentheses within the list of steps. For example, (Blue Car Models with Sales GT 1M) and (Red Car Models with Sales GT 2M). CompoundSteps, like simple Steps are managed by the StepManager. Each CompoundStep can contains any number of Steps or CompoundSteps.

The following is a brief description of how AND/OR is applied by step

See Also:
DataItem, StepInterface

Field Summary
static String AND_CONDITION
          Definition of an AND condition in a compound step.
static String EVENT_CONDITION_TYPE_CHANGED
          Indication that a condition defined in a step has changed
static String EVENT_NEGATION_CHANGED
          Indication that a NOT condition in the MDX phraase has changed.
static String EVENT_STEPS_CHANGED
          Indication that the list of steps defined in a compound step has changed
static String OR_CONDITION
          Definition of an OR condition in a compound step.
 
Fields inherited from interface com.sas.iquery.metadata.business.Base
EVENT_OBJECT_DEFINITION_CHANGED
 
Fields inherited from interface com.sas.iquery.metadata.business.ModelItem
EVENT_OBJECT_PROPERTY_CHANGED
 
Constructor Summary
CompoundStep()
          A constructor that initializes a CompoundStep
 
Method Summary
 void addStep(StepInterface step)
          This method adds a Step to the ordered list of Steps.
 List getSteps()
          This method returns an ordered list of Steps.
 List getStepsConditions()
          This method returns an ordered list of the condition (AND/OR) applied to steps.
 boolean isNegated()
          Tests if the expression defined in the compound step are negated or defined with a NOT
 void setConditionType(String stepCondition)
          This method defines whether AND/OR condition for step connection.
 void setNegated(boolean isNegated)
          Set that this compound step is negated
 
Methods inherited from class com.sas.iquery.metadata.business.impl.AbstractBase
accumulateDirectlyReferencedModelsInDownwardDefinition, getDirectlyReferencedBaseObjectsInDownwardDefinition, hasCycleInDownwardDefinition
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResourceReferencer
getResources
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface com.sas.iquery.metadata.PropertyChangeListenee
addListener, getListeners, removeListener
 
Methods inherited from interface com.sas.iquery.metadata.business.UsabilityInterface
getReasonsUnusable, isUsableInQuery
 

Field Detail

EVENT_NEGATION_CHANGED

public static final String EVENT_NEGATION_CHANGED
Indication that a NOT condition in the MDX phraase has changed.

EVENT_STEPS_CHANGED

public static final String EVENT_STEPS_CHANGED
Indication that the list of steps defined in a compound step has changed

EVENT_CONDITION_TYPE_CHANGED

public static final String EVENT_CONDITION_TYPE_CHANGED
Indication that a condition defined in a step has changed

AND_CONDITION

public static final String AND_CONDITION
Definition of an AND condition in a compound step.

OR_CONDITION

public static final String OR_CONDITION
Definition of an OR condition in a compound step.
Constructor Detail

CompoundStep

public CompoundStep()
A constructor that initializes a CompoundStep
Method Detail

addStep

public void addStep(StepInterface step)
This method adds a Step to the ordered list of Steps.
Parameters:
step - The step to be added to the CompoundStep

isNegated

public boolean isNegated()
Tests if the expression defined in the compound step are negated or defined with a NOT

setNegated

public void setNegated(boolean isNegated)
Set that this compound step is negated

setConditionType

public void setConditionType(String stepCondition)
This method defines whether AND/OR condition for step connection. If an AND or OR must be applied, If neither is used, OR is assumed.
Parameters:
stepCondition - The stepCondition defines whether this is a AND/OR condition.

getSteps

public List getSteps()
This method returns an ordered list of Steps. A CompoundStep can contain CompoundSteps or Steps, but can't directly or indirectly contain itself.
Returns:
An ordered list of Steps

getStepsConditions

public List getStepsConditions()
This method returns an ordered list of the condition (AND/OR) applied to steps.
Returns:
An ordered list of step conditions

***  This class is subject to change   ***




Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 16:04:04