Class OperatorUtil
- java.lang.Object
-
- org.eclipse.birt.report.model.api.util.OperatorUtil
-
public class OperatorUtil extends java.lang.ObjectRepresents the utility class to help compute level of operator.
-
-
Field Summary
Fields Modifier and Type Field Description static intOPERATOR_LEVEL_NOT_EXISTIf operator is not in the choice list, then level is fail.static intOPERATOR_LEVEL_ONEIf operater is >, >= , = , < , <= , like , top , bottom , any , then level is one.static intOPERATOR_LEVEL_TWOIf operater is between , not between , then level is two.static intOPERATOR_LEVEL_ZEROIf operater is null, not null, true , false , then level is zero.
-
Constructor Summary
Constructors Constructor Description OperatorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcomputeFilterOperatorLevel(java.lang.String operator)Computes the level of operator.static intcomputeStyleRuleOperatorLevel(java.lang.String operator)Computes the level of operator.
-
-
-
Field Detail
-
OPERATOR_LEVEL_ZERO
public static final int OPERATOR_LEVEL_ZERO
If operater is null, not null, true , false , then level is zero. Delete value1 and value2 in design file- See Also:
- Constant Field Values
-
OPERATOR_LEVEL_ONE
public static final int OPERATOR_LEVEL_ONE
If operater is >, >= , = , < , <= , like , top , bottom , any , then level is one. Set value1, delete value2 in design file- See Also:
- Constant Field Values
-
OPERATOR_LEVEL_TWO
public static final int OPERATOR_LEVEL_TWO
If operater is between , not between , then level is two. Set value1 and value2 in design file.- See Also:
- Constant Field Values
-
OPERATOR_LEVEL_NOT_EXIST
public static final int OPERATOR_LEVEL_NOT_EXIST
If operator is not in the choice list, then level is fail.- See Also:
- Constant Field Values
-
-
Method Detail
-
computeStyleRuleOperatorLevel
public static int computeStyleRuleOperatorLevel(java.lang.String operator)
Computes the level of operator. The allowed values are defined inDesignChoiceConstants, If operator is one of follows:MAP_OPERATOR_NULLMAP_OPERATOR_NOT_NULLMAP_OPERATOR_TRUEMAP_OPERATOR_FALSE
OPERATOR_LEVEL_ZERO; If operator is one of follows:MAP_OPERATOR_EQMAP_OPERATOR_NEMAP_OPERATOR_LTMAP_OPERATOR_LEMAP_OPERATOR_GEMAP_OPERATOR_GTMAP_OPERATOR_LIKEMAP_OPERATOR_TOP_NMAP_OPERATOR_BOTTOM_NMAP_OPERATOR_NOT_LIKEMAP_OPERATOR_NOT_MATCHMAP_OPERATOR_ANY
OPERATOR_LEVEL_ONE; If operator is one of follows:MAP_OPERATOR_BETWEENMAP_OPERATOR_NOT_BETWEEN
OPERATOR_LEVEL_TWO; If operator is not in the choice list, returnOPERATOR_LEVEL_NOT_EXIST.- Parameters:
operator- the operator to compute.- Returns:
- level of operator.
-
computeFilterOperatorLevel
public static int computeFilterOperatorLevel(java.lang.String operator)
Computes the level of operator. The allowed values are defined inDesignChoiceConstants, If operator is one of follows:FILTER_OPERATOR_NULLFILTER_OPERATOR_NOT_NULLFILTER_OPERATOR_TRUEFILTER_OPERATOR_FALSE
OPERATOR_LEVEL_ZERO; If operator is one of follows:FILTER_OPERATOR_EQFILTER_OPERATOR_NEFILTER_OPERATOR_LTFILTER_OPERATOR_LEFILTER_OPERATOR_GEFILTER_OPERATOR_GTFILTER_OPERATOR_LIKEFILTER_OPERATOR_TOP_NFILTER_OPERATOR_BOTTOM_NFILTER_OPERATOR_TOP_PERCENTFILTER_OPERATOR_BOTTOM_PERCENTFILTER_OPERATOR_ANY
OPERATOR_LEVEL_ONE; If operator is one of follows:FILTER_OPERATOR_BETWEENFILTER_OPERATOR_NOT_BETWEEN
OPERATOR_LEVEL_TWO; If operator is not in the choice list, returnOPERATOR_LEVEL_NOT_EXIST.- Parameters:
operator- the operator to compute.- Returns:
- level of operator.
-
-