Class ConditionRule
java.lang.Object
chemaxon.formats.documents.jchemoffice.ConditionRule
Conditional rule settings to evaluate data entries for conditional formatting
-
Constructor Summary
ConstructorsConstructorDescriptionConditionRule(ConditionalRuleOperators operator, double threshold) ConditionRule(ConditionalRuleOperators operator, String value) -
Method Summary
Modifier and TypeMethodDescriptionGet operator of the current rule instance.doubleGet comparison value/threshold of the rule.getValue()Get comparison value instead of numeric thresholdvoidsetOperator(ConditionalRuleOperators operator) Set conditional rule operator.voidsetThreshold(double threshold) Set the numeric threshold value.voidSet generic string value for comparisontoString()
-
Constructor Details
-
ConditionRule
public ConditionRule() -
ConditionRule
-
ConditionRule
-
-
Method Details
-
getOperator
Get operator of the current rule instance.- Returns:
- : rule operator
-
setOperator
Set conditional rule operator. -
getThreashold
public double getThreashold()Get comparison value/threshold of the rule.- Returns:
- : double value => now the numeric values are supported only
-
setThreshold
public void setThreshold(double threshold) Set the numeric threshold value. -
getValue
Get comparison value instead of numeric threshold- Returns:
- String as comparison value
-
setValue
Set generic string value for comparison- Parameters:
value- - string
-
toString
-