Class ConstraintImpl

    • Constructor Detail

      • ConstraintImpl

        public ConstraintImpl()
    • Method Detail

      • getConstraint

        public String getConstraint()
        Description copied from interface: Constraint
        Typically this method returns the constraint as a String
        Specified by:
        getConstraint in interface Constraint
        Returns:
        the constraint
      • setConstraint

        public void setConstraint​(String constraint)
        Description copied from interface: Constraint
        Method for setting the constraint
        Specified by:
        setConstraint in interface Constraint
        Parameters:
        constraint - the constraint
      • getName

        public String getName()
        Description copied from interface: Constraint
        Returns the name of the constraint
        Specified by:
        getName in interface Constraint
        Returns:
        the name of the constraint
      • setName

        public void setName​(String name)
        Description copied from interface: Constraint
        Sets the name of the constraint
        Specified by:
        setName in interface Constraint
        Parameters:
        name - the name of the constraint
      • getPriority

        public int getPriority()
        Description copied from interface: Constraint
        Returns the priority of the constraint
        Specified by:
        getPriority in interface Constraint
        Returns:
        the priority of the constraint
      • setPriority

        public void setPriority​(int priority)
        Description copied from interface: Constraint
        Method for setting the priority of the constraint
        Specified by:
        setPriority in interface Constraint
        Parameters:
        priority - the priority of the constraint
      • getDialect

        public String getDialect()
        Description copied from interface: Constraint
        Returns the dialect of the constraint, e.g. "mvel" or "java"
        Specified by:
        getDialect in interface Constraint
        Returns:
        the dialect of the constraint
      • setDialect

        public void setDialect​(String dialect)
        Description copied from interface: Constraint
        Method for setting the dialect of the constraint, e.g. "mvel" or "java"
        Specified by:
        setDialect in interface Constraint
        Parameters:
        dialect - the dialect of the constraint
      • getType

        public String getType()
        Description copied from interface: Constraint
        Returns the type of the constraint, e.g. "code" or "rule"
        Specified by:
        getType in interface Constraint
        Returns:
        the type of the constraint
      • setType

        public void setType​(String type)
        Description copied from interface: Constraint
        Method for setting the type of the constraint, e.g. "code" or "rule"
        Specified by:
        setType in interface Constraint
        Parameters:
        type - the type of the constraint
      • setDefault

        public void setDefault​(boolean isDefault)
        Specified by:
        setDefault in interface Constraint