Class ConstrainableCondition

  • All Implemented Interfaces:
    ICondition
    Direct Known Subclasses:
    CollectCondition, ObjectCondition

    public abstract class ConstrainableCondition
    extends java.lang.Object
    implements ICondition
    A condition that contains constraints belonging to some object or value.
    • Field Detail

      • constraints

        protected java.util.List constraints
        The constraints.
    • Constructor Detail

      • ConstrainableCondition

        public ConstrainableCondition()
        Create an empty constrainable condition.
      • ConstrainableCondition

        public ConstrainableCondition​(java.util.List constraints)
        Create a condition with constraints.
    • Method Detail

      • addConstraint

        public void addConstraint​(IConstraint con)
        Add a constraint.
        Parameters:
        constraint - The constraint-
      • getConstraints

        public java.util.List getConstraints()
        Get the constraints.
        Returns:
        The constraints.
      • getBoundConstraints

        public java.util.List getBoundConstraints()
        Get all bound constraints.
        Returns:
        The bound constraints.
      • getVariables

        public java.util.List getVariables()
        Get the variables.
        Specified by:
        getVariables in interface ICondition
        Returns:
        The declared variables.