com.sas.iquery.metadata.expr.olap
Class DataBasedFilterExpression_Between

com.sas.iquery.metadata.expr.olap.DataBasedFilterExpression_Between
All Implemented Interfaces:
Base, BusinessModelResourceReferencer, ModelItem, UsabilityInterface, ExpressionInterface, PropertyChangeListenee, java.beans.PropertyChangeListener, java.lang.Cloneable, java.util.EventListener

public class DataBasedFilterExpression_Between

Models the "between" simple conditional expression. This is of the format {WhatToFilter} where {whatToCompare} is Between {lowerBound} and {upperBound} inclusive . The comparison operator defaults to "Less than or Equal To".

See the ConditionalExpression class for a description of the organization of of ConditionalExpression classes.


Field Summary
static java.lang.String EVENT_COMPARISON_OPERATOR_CHANGED
          Indication that what comparison operator has changed.
static java.lang.String EVENT_LOWER_BOUND_CHANGED
          Indication that lower portion of range for filter has changed.
static java.lang.String EVENT_UPPER_BOUND_CHANGED
          Indication that upper portion of range for filter has changed.
static java.lang.String EVENT_WHAT_TO_COMPARE_CHANGED
          Indication that what is compared has changed.
static java.lang.String EVENT_WHAT_TO_FILTER_CHANGED
          Indication that what to filter has changed.
 
Fields inherited from class com.sas.iquery.metadata.expr.ConditionalExpression
EVENT_NEGATION_CHANGED
 
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
DataBasedFilterExpression_Between()
           
 
Method Summary
 java.util.List<ExpressionInterface> getLowerBound()
          Gets the left expression for this conditional expression.
 java.util.List<ExpressionInterface> getUpperBound()
          Gets the right expression for this conditional expression.
 java.util.List<ExpressionInterface> getWhatToCompare()
          Gets the center portion of the between expression A <= B <= C.
 ExpressionInterface getWhatToFilter()
           
 void setLowerBound(java.util.List<ExpressionInterface> values)
          Sets the left expression for this conditional expression.
 void setUpperBound(java.util.List<? extends ExpressionInterface> values)
          Sets the right expression portion of the conditional expression.
 void setWhatToCompare(java.util.List<? extends ExpressionInterface> values)
          Sets the center portion of the between expression A <= B <= C.
 void setWhatToFilter(ExpressionInterface expr)
          Sets the value of what will be filtered.
 
Methods inherited from class com.sas.iquery.metadata.expr.ConditionalExpression
getExpressionType, isNegated, setIsNegated
 
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

EVENT_WHAT_TO_FILTER_CHANGED

public static final java.lang.String EVENT_WHAT_TO_FILTER_CHANGED
Indication that what to filter has changed.

See Also:
Constant Field Values

EVENT_COMPARISON_OPERATOR_CHANGED

public static final java.lang.String EVENT_COMPARISON_OPERATOR_CHANGED
Indication that what comparison operator has changed.

See Also:
Constant Field Values

EVENT_LOWER_BOUND_CHANGED

public static final java.lang.String EVENT_LOWER_BOUND_CHANGED
Indication that lower portion of range for filter has changed.

See Also:
Constant Field Values

EVENT_UPPER_BOUND_CHANGED

public static final java.lang.String EVENT_UPPER_BOUND_CHANGED
Indication that upper portion of range for filter has changed.

See Also:
Constant Field Values

EVENT_WHAT_TO_COMPARE_CHANGED

public static final java.lang.String EVENT_WHAT_TO_COMPARE_CHANGED
Indication that what is compared has changed.

See Also:
Constant Field Values
Constructor Detail

DataBasedFilterExpression_Between

public DataBasedFilterExpression_Between()
Method Detail

setWhatToFilter

public void setWhatToFilter(ExpressionInterface expr)
Sets the value of what will be filtered.

Parameters:
expr - is the value in question and must not be a CompoundConditionalExpression

getWhatToFilter

public ExpressionInterface getWhatToFilter()

setWhatToCompare

public void setWhatToCompare(java.util.List<? extends ExpressionInterface> values)
Sets the center portion of the between expression A <= B <= C. This is commonly a List of StringExpression representing Member Names or DataItem (with structure of Measure).

Parameters:
values - expression being tested for the between expression

getWhatToCompare

public java.util.List<ExpressionInterface> getWhatToCompare()
Gets the center portion of the between expression A <= B <= C. This is commonly a List of StringExpressions representing Member Names or DataItem (with structure of Measure).

Returns:
the expression being tested for the between expression

setLowerBound

public void setLowerBound(java.util.List<ExpressionInterface> values)
Sets the left expression for this conditional expression. This is commonly a single ConstantExpression representing a constant value to be used in the expression, but could also be a more general expression or a list of StringExpressions representing Member Names.

Parameters:
values - the lower bound of the between expression.

getLowerBound

public java.util.List<ExpressionInterface> getLowerBound()
Gets the left expression for this conditional expression. This is commonly a single ConstantExpression representing a constant value to be used in the expression, but could also be a more general expression or a list of StringExpressions representing Member Names.

Returns:
the lower bound of the between expression.

setUpperBound

public void setUpperBound(java.util.List<? extends ExpressionInterface> values)
Sets the right expression portion of the conditional expression. This is commonly a single ConstantExpression representing a constant value to be used in the expression, but could also be a more general expression or a list of StringExpressions representing Member Names.

Parameters:
values - the upper bound of the between expression

getUpperBound

public java.util.List<ExpressionInterface> getUpperBound()
Gets the right expression for this conditional expression. This is commonly a single ConstantExpression representing a constant value to be used in the expression, but could also be a more general expression or a list of StringExpressions representing Member Names.

Returns:
the upper bound of the between expression



Copyright © 2009 SAS Institute Inc. All Rights Reserved.