Class CMAConstraint


  • public class CMAConstraint
    extends java.lang.Object
    What constraints are applied to this rule?
    • Constructor Detail

      • CMAConstraint

        public CMAConstraint()
    • Method Detail

      • getAnd

        public CMAConstraint[] getAnd()
        Which constraints have to be all satisfied?
        Returns:
        the and constraints.
      • setAnd

        public CMAConstraint setAnd​(CMAConstraint... and)
        Set a new constraints which have all to be satisfied.
        Parameters:
        and - constraints to be satisfied.
        Returns:
        this constraint to for chaining.
      • getOr

        public CMAConstraint[] getOr()
        Which array of constraints where only one needs to be satisfied?
        Returns:
        the or constraints.
      • setOr

        public CMAConstraint setOr​(CMAConstraint... or)
        Set a new list of constraints where only one be satisfied.
        Parameters:
        or - constraints of which one needs to be satisfied.
        Returns:
        this constraint to for chaining.
      • getNot

        public CMAConstraint[] getNot()
        Which constraints do need to be not satisfied?

        This effectively negates all the constraints.

        Returns:
        a array of not satisfied constraints.
      • setNot

        public CMAConstraint setNot​(CMAConstraint... not)
        Set a new array of constraints which must not be satisfied.
        Parameters:
        not - a constraint not to be true.
        Returns:
        this constraint to for chaining.
      • getEquals

        public CMAConstraint.Equals getEquals()
        Which condition has to be satisfied to satisfy this constraint?
        Returns:
        an equals condition.
      • setEquals

        public CMAConstraint setEquals​(CMAConstraint.Equals equals)
        Update the condition to be satisfied to satisfy this constraint.
        Parameters:
        equals - the equals constraint.
        Returns:
        this instance for chaining.
      • getFieldKeyPaths

        public CMAConstraint.FieldKeyPath[] getFieldKeyPaths()
        On which fieldKeyPaths does this constraint act?
        Returns:
        a array of fieldKeyPaths to be act upon.
      • setFieldKeyPaths

        public CMAConstraint setFieldKeyPaths​(CMAConstraint.FieldKeyPath... fieldKeyPaths)
        Set the array of fieldKeyPaths to be used.
        Parameters:
        fieldKeyPaths - the new fieldKeyPaths to be set.
        Returns:
        this instance for chaining.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        a human readable string, representing the object.