Class OperatorUtil
java.lang.Object
org.eclipse.birt.report.model.api.util.OperatorUtil
Represents the utility class to help compute level of operator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIf operator is not in the choice list, then level is fail.static final intIf operater is >, >= , = , < , <= , like , top , bottom , any , then level is one.static final intIf operater is between , not between , then level is two.static final intIf operater is null, not null, true , false , then level is zero. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcomputeFilterOperatorLevel(String operator) Computes the level of operator.static intcomputeStyleRuleOperatorLevel(String operator) Computes the level of operator.
-
Field Details
-
OPERATOR_LEVEL_ZERO
public static final int OPERATOR_LEVEL_ZEROIf operater is null, not null, true , false , then level is zero. Delete value1 and value2 in design file- See Also:
-
OPERATOR_LEVEL_ONE
public static final int OPERATOR_LEVEL_ONEIf operater is >, >= , = , < , <= , like , top , bottom , any , then level is one. Set value1, delete value2 in design file- See Also:
-
OPERATOR_LEVEL_TWO
public static final int OPERATOR_LEVEL_TWOIf operater is between , not between , then level is two. Set value1 and value2 in design file.- See Also:
-
OPERATOR_LEVEL_NOT_EXIST
public static final int OPERATOR_LEVEL_NOT_EXISTIf operator is not in the choice list, then level is fail.- See Also:
-
-
Constructor Details
-
OperatorUtil
public OperatorUtil()
-
-
Method Details
-
computeStyleRuleOperatorLevel
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
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.
-