com.sas.util
Class AbstractCondition

java.lang.Object
  |
  +--com.sas.util.AbstractCondition
Direct Known Subclasses:

public abstract class AbstractCondition
extends java.lang.Object


Field Summary
static int DATATYPE_CHARACTER
           
static int DATATYPE_NUMERIC
           
static int OPERATOR_EQ
           
static int OPERATOR_GE
           
static int OPERATOR_GT
           
static int OPERATOR_LE
           
static int OPERATOR_LT
           
static int OPERATOR_NE
           
 
Constructor Summary
AbstractCondition()
           
 
Method Summary
abstract  Object evaluate(ConditionEvaluationInterface conditionEvaluationInterface, Object[] values)
          Method evaluate.
protected  boolean evaluateCondition(ConditionEvaluationInterface conditionEvaluationInterface, Object[] values)
          Method evaluateCondition.
 Object getIdentifier()
          Returns the identifier.
 String getLeftExpression()
          Returns the leftExpression.
 int getOperator()
          Returns the operator.
 String getRightExpression()
          Returns the rightExpression.
 void setIdentifier(Object identifier)
          Sets the identifier.
 void setLeftExpression(String leftExpression)
          Sets the leftExpression.
 void setOperator(int operator)
          Sets the operator.
 void setRightExpression(String rightExpression)
          Sets the rightExpression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATOR_EQ

public static final int OPERATOR_EQ

OPERATOR_GT

public static final int OPERATOR_GT

OPERATOR_GE

public static final int OPERATOR_GE

OPERATOR_LT

public static final int OPERATOR_LT

OPERATOR_LE

public static final int OPERATOR_LE

OPERATOR_NE

public static final int OPERATOR_NE

DATATYPE_NUMERIC

public static final int DATATYPE_NUMERIC

DATATYPE_CHARACTER

public static final int DATATYPE_CHARACTER
Constructor Detail

AbstractCondition

public AbstractCondition()
Method Detail

getIdentifier

public Object getIdentifier()
Returns the identifier.
Returns:
String

getLeftExpression

public String getLeftExpression()
Returns the leftExpression.
Returns:
String

getOperator

public int getOperator()
Returns the operator.
Returns:
int

getRightExpression

public String getRightExpression()
Returns the rightExpression.
Returns:
String

setIdentifier

public void setIdentifier(Object identifier)
Sets the identifier.
Parameters:
identifier - The identifier to set

setLeftExpression

public void setLeftExpression(String leftExpression)
Sets the leftExpression.
Parameters:
leftExpression - The leftExpression to set

setOperator

public void setOperator(int operator)
Sets the operator.
Parameters:
operator - The operator to set

setRightExpression

public void setRightExpression(String rightExpression)
Sets the rightExpression.
Parameters:
rightExpression - The rightExpression to set

evaluateCondition

protected boolean evaluateCondition(ConditionEvaluationInterface conditionEvaluationInterface,
                                    Object[] values)
Method evaluateCondition. This method does the actual evaluation, and should be called from any implementers to figure out if the condition evaluated true or false
Parameters:
conditionEvaluationInterface -  
values - the row values needed for the evaluation.
Returns:
boolean whether the condition evaluated true or false.

evaluate

public abstract Object evaluate(ConditionEvaluationInterface conditionEvaluationInterface,
                                Object[] values)
Method evaluate. This method evaluates the condition and returns the formatting to be used.
Parameters:
conditionEvaluationInterface -  
values - the row values which is needed for the condition evaluation
Returns:
Object the returned formatting, or null if the condition evaluated false.




Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Thu, 16 Feb 2006 02:30:17