Class SingleCondition
java.lang.Object
de.xima.fc.workflow.model.nodes.SingleCondition
- All Implemented Interfaces:
ISingleConditionProviding, Serializable
@NotEmptyIf(field="matchOperandRhs",
dependants="matchCondition",
target=SingleCondition.class)
public final class SingleCondition
extends Object
implements ISingleConditionProviding, Serializable
Models a single conditions with an operator and one or two operands. Used by the actions such as conditions and while
loops, see also
IMultipleCheckProps. For example, this can be used to test whether a value is greater than
another value.
Note this class should be treated as effectively final and will be made final in an upcoming version. It is currently not final only for backwards compatibility.
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetMatchCondition(EMatchCondition matchCondition) voidsetMatchOperandLhs(String matchOperandLhs) voidsetMatchOperandRhs(String matchOperandRhs) voidsetVariableName(String variableName)
-
Constructor Details
-
SingleCondition
public SingleCondition()
-
-
Method Details
-
getMatchCondition
- Specified by:
getMatchConditionin interfaceISingleConditionProviding- Returns:
- The operator for comparing the operands.
-
getMatchOperandLhs
- Specified by:
getMatchOperandLhsin interfaceISingleConditionProviding- Returns:
- The left hand side with the value to be tested by the
getMatchCondition().
-
getMatchOperandRhs
- Specified by:
getMatchOperandRhsin interfaceISingleConditionProviding- Returns:
- The right hand side with the value to test against, if required by the
getMatchCondition().
-
getVariableName
- Specified by:
getVariableNamein interfaceISingleConditionProviding- Returns:
- The name of this condition when used in a
BaseMultipleConditionProps.getCustomExpression().
-
isShowMatchOperandRhs
public boolean isShowMatchOperandRhs()- Specified by:
isShowMatchOperandRhsin interfaceISingleConditionProviding- Returns:
- Whether the input field for the right hand side match operand should be shown in the UI.
-
setMatchCondition
- Parameters:
matchCondition- The operator for comparing the operands.
-
setMatchOperandLhs
- Parameters:
matchOperandLhs- The left hand side with the value to be tested by thegetMatchCondition().
-
setMatchOperandRhs
- Parameters:
matchOperandRhs- The right hand side with the value to test against, if required by thegetMatchCondition().
-
setVariableName
- Parameters:
variableName- The name of this condition when used in aBaseMultipleConditionProps.getCustomExpression().
-