Representation of a Constraint operating on the left and right operands. This is a base class and is not directly constructed. Direct known subclasses include:
Exactly match the left and right sides of operation.
If possible, performs a regular expresion matching by treating the right side of the operation as a regular expression.This is only considered for String arguments.
If possible, performs a glob-style matching by treating the right side of the operation as a glob expression. This is only considered for String arguments.
Retrieves the match mode for this binary constraint operation.
Sets the match mode used by some individual binary operator constraints. The match mode only has effect if the operator supports the specified type and the type of the left and right side of the operation are compatible with the mode otherwise the default of MATCH_MODE_EXACT is assumed.
Retrieves the fact id of the left side of the operation.
If set with setFactValue(), retrieves the fact name whose value is used on the right side of the operation, otherwise this will return None.
Retrieves the reason string that contains the human readable explanation that can be displayed as an error when a constraint evaluates to False.
If set as a value, retrieves the value of the right side of the operation, otherwise it returns null.
Sets the fact identification string for the left side of the operation.
Sets the fact name whose value is used in the right side of the operation and, in doing so, negates any previous setValue() call.
Retrieves the reason string that contains the human readable explanation that can be displayed as an error when a constraint evaluates to false.
Sets the value of the right side of the operation and, in doing so, negates any previous setFactValue() call.
Subclasses: ContainsConstraint, EqConstraint, GeConstraint, GtConstraint, LeConstraint, LtConstraint, NeConstraint.
Javadoc: BinaryConstraint