Method Summary
All Methods Instance Methods Abstract Methods
Returns the filter expression.
Returns the filter target.
Returns the operator of this filter condition.
Gets the value1 expression list of this filter condition.
Returns the value 2 expression of this filter condition.
boolean
Determines whether this filter condition is optional or not.
void
Sets the filter expression.
void
void
Sets the operator of this filter condition.
void
Sets the optional status for this filter condition.
void
Sets the value 1 expression list of this filter condition.
void
Sets the value 2 expression of this filter condition.
Method Details
getExpr
Returns the filter expression.
Returns:
the filter expression
setExpr
Sets the filter expression.
Parameters:
filterExpr
- the filter expression to set
Throws:
SemanticException
- value required exception
getOperator
Returns the operator of this filter condition. The possible values are
defined in
DesignChoiceConstants
, and
they are:
FILTER_OPERATOR_EQ
FILTER_OPERATOR_NE
FILTER_OPERATOR_LT
FILTER_OPERATOR_LE
FILTER_OPERATOR_GE
FILTER_OPERATOR_GT
FILTER_OPERATOR_BETWEEN
FILTER_OPERATOR_NOT_BETWEEN
FILTER_OPERATOR_NULL
FILTER_OPERATOR_NOT_NULL
FILTER_OPERATOR_TRUE
FILTER_OPERATOR_FALSE
FILTER_OPERATOR_LIKE
FILTER_OPERATOR_TOP_N
FILTER_OPERATOR_BOTTOM_N
FILTER_OPERATOR_TOP_PERCENT
FILTER_OPERATOR_BOTTOM_PERCENT
FILTER_OPERATOR_ANY
Returns:
the operator of this filter condition
setOperator
Sets the operator of this filter condition. The allowed values are defined in
DesignChoiceConstants
, and
they are:
FILTER_OPERATOR_EQ
FILTER_OPERATOR_NE
FILTER_OPERATOR_LT
FILTER_OPERATOR_LE
FILTER_OPERATOR_GE
FILTER_OPERATOR_GT
FILTER_OPERATOR_BETWEEN
FILTER_OPERATOR_NOT_BETWEEN
FILTER_OPERATOR_NULL
FILTER_OPERATOR_NOT_NULL
FILTER_OPERATOR_TRUE
FILTER_OPERATOR_FALSE
FILTER_OPERATOR_LIKE
FILTER_OPERATOR_TOP_N
FILTER_OPERATOR_BOTTOM_N
FILTER_OPERATOR_TOP_PERCENT
FILTER_OPERATOR_BOTTOM_PERCENT
FILTER_OPERATOR_ANY
Parameters:
operator
- the operator to set
Throws:
SemanticException
- if operator is not in the choice list.
getValue1List
Gets the value1 expression list of this filter condition. For most filter
operator, there is only one expression in the returned list. However, filter
operator 'in' may contain more than one expression.
Returns:
the value1 expression list of this filter condition.
setValue1
Sets the value 1 expression list of this filter condition.
Parameters:
value1List
- the value 1 expression list to set
Throws:
SemanticException
- if the instance in the list is not valid
getValue2
Returns the value 2 expression of this filter condition.
Returns:
the value 2 expression of this filter condition
setValue2
Sets the value 2 expression of this filter condition.
Parameters:
value2Expr
- the value 2 expression to set
Throws:
SemanticException
getFilterTarget
Returns the filter target. The possible values are defined in
DesignChoiceConstants
, and
they are:
FILTER_TARGET_DATA_SET
FILTER_TARGET_RESULT_SET
Returns:
the target type
setFilterTarget
Sets the filter target. The allowed values are defined in
DesignChoiceConstants
, and
they are:
FILTER_TARGET_DATA_SET
FILTER_TARGET_RESULT_SET
Parameters:
filterTarget
- the filter target to set
Throws:
SemanticException
- if the value is not one of the above.
isOptional
boolean isOptional ()
Determines whether this filter condition is optional or not.
Returns:
true if this filter is optional, otherwise false
setOptional
Sets the optional status for this filter condition.
Parameters:
isOptional
- true if this filter is optional, otherwise false
Throws:
SemanticException