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

com.sas.iquery.metadata.expr
Class ConditionalExpression

com.sas.iquery.metadata.expr.ConditionalExpression
All Implemented Interfaces:
Base, BusinessModelResourceReferencer, ModelItem, UsabilityInterface, ExpressionInterface, PropertyChangeListenee, java.beans.PropertyChangeListener, java.lang.Cloneable, java.util.EventListener
Direct Known Subclasses:
BaseFilterExpression, CompoundConditionalExpression, DataBasedFilterExpression_Between, MultipleConditionalExpression, RelationalConditionalExpression

public abstract class ConditionalExpression

Specifies the abstract base class for all conditional expression classes. Conditional expressions model expressions evaluating to a boolean expression type. Conditional expressions are modeled in 3 basic ways.

  1. Using one of the SimpleConditionalExpression_* classes - these classes model one of the ten or so types of simple conditional expressions, as laid out by SQL and shown below.
  2. Using the CompoundConditionalExpression class - this class models the ability to construct compound expressions with tied together with ANDs and ORs.
  3. Using the StringExpression class - to catch all other conditional expressions not modeled in any other way.


Field Summary
static java.lang.String EVENT_NEGATION_CHANGED
          The event thrown when the negation attribute has changed values.
 
Fields inherited from interface com.sas.iquery.metadata.business.ModelItem
EVENT_OBJECT_PROPERTY_CHANGED
 
Fields inherited from interface com.sas.iquery.metadata.business.Base
EVENT_OBJECT_DEFINITION_CHANGED
 
Constructor Summary
ConditionalExpression()
           
 
Method Summary
 int getExpressionType()
          Always returns ExpressionTypes.EXP_TYPE_BOOLEAN
 boolean isNegated()
          Returns whether this conditional expression is negated.
 void setIsNegated(boolean flag)
          Sets whether this conditional expression is negated.
 
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResourceReferencer
getResources
 
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

***  This field is subject to change.  ***

EVENT_NEGATION_CHANGED

public static final java.lang.String EVENT_NEGATION_CHANGED
The event thrown when the negation attribute has changed values.

See Also:
Constant Field Values
Constructor Detail

ConditionalExpression

public ConditionalExpression()
Method Detail
***  This method is subject to change.  ***

isNegated

public boolean isNegated()
Returns whether this conditional expression is negated.

Returns:
whether this conditional expression is negated

***  This method is subject to change.  ***

setIsNegated

public void setIsNegated(boolean flag)
Sets whether this conditional expression is negated.

Parameters:
flag - boolean indicating if this expression is negated

***  This method is subject to change.  ***

getExpressionType

public int getExpressionType()
Always returns ExpressionTypes.EXP_TYPE_BOOLEAN

Returns:
the expression type (ExpressionTypes.EXP_TYPE_BOOLEAN in this case).

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




Copyright © 2009 SAS Institute Inc. All Rights Reserved.