Interface IFilterConditionElement
- All Superinterfaces:
IDesignElement
-
Method Summary
Modifier and TypeMethodDescriptiongetExpr()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.booleanDetermines whether this filter condition is optional or not.voidSets the filter expression.voidsetFilterTarget(String filterTarget) Sets the filter target.voidsetOperator(String operator) Sets the operator of this filter condition.voidsetOptional(boolean isOptional) Sets the optional status for this filter condition.voidSets the value 1 expression list of this filter condition.voidSets the value 2 expression of this filter condition.Methods inherited from interface IDesignElement
getNamedExpression, getParent, getQualifiedName, getReport, getStyle, getUserProperty, getUserPropertyExpression, setNamedExpression, setUserProperty, setUserProperty
-
Method Details
-
getExpr
-
setExpr
Sets the filter expression.- Parameters:
filterExpr- the filter expression to set- Throws:
SemanticException- value required exception
-
getOperator
String getOperator()Returns the operator of this filter condition. The possible values are defined inDesignChoiceConstants, and they are:FILTER_OPERATOR_EQFILTER_OPERATOR_NEFILTER_OPERATOR_LTFILTER_OPERATOR_LEFILTER_OPERATOR_GEFILTER_OPERATOR_GTFILTER_OPERATOR_BETWEENFILTER_OPERATOR_NOT_BETWEENFILTER_OPERATOR_NULLFILTER_OPERATOR_NOT_NULLFILTER_OPERATOR_TRUEFILTER_OPERATOR_FALSEFILTER_OPERATOR_LIKEFILTER_OPERATOR_TOP_NFILTER_OPERATOR_BOTTOM_NFILTER_OPERATOR_TOP_PERCENTFILTER_OPERATOR_BOTTOM_PERCENTFILTER_OPERATOR_ANY
- Returns:
- the operator of this filter condition
-
setOperator
Sets the operator of this filter condition. The allowed values are defined inDesignChoiceConstants, and they are:FILTER_OPERATOR_EQFILTER_OPERATOR_NEFILTER_OPERATOR_LTFILTER_OPERATOR_LEFILTER_OPERATOR_GEFILTER_OPERATOR_GTFILTER_OPERATOR_BETWEENFILTER_OPERATOR_NOT_BETWEENFILTER_OPERATOR_NULLFILTER_OPERATOR_NOT_NULLFILTER_OPERATOR_TRUEFILTER_OPERATOR_FALSEFILTER_OPERATOR_LIKEFILTER_OPERATOR_TOP_NFILTER_OPERATOR_BOTTOM_NFILTER_OPERATOR_TOP_PERCENTFILTER_OPERATOR_BOTTOM_PERCENTFILTER_OPERATOR_ANY
- Parameters:
operator- the operator to set- Throws:
SemanticException- if operator is not in the choice list.
-
getValue1List
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
String 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
String getFilterTarget()Returns the filter target. The possible values are defined inDesignChoiceConstants, and they are:FILTER_TARGET_DATA_SETFILTER_TARGET_RESULT_SET
- Returns:
- the target type
-
setFilterTarget
Sets the filter target. The allowed values are defined inDesignChoiceConstants, and they are:FILTER_TARGET_DATA_SETFILTER_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
-