Interface ConstraintMetaModel


public interface ConstraintMetaModel
Provides information about the known constraints. Works in combination with ConstraintProvider.
  • Method Details

    • getConstraint

      Constraint getConstraint(ConstraintRef constraintRef)
      Returns the constraint for the given reference.
      Parameters:
      constraintRef - never null
      Returns:
      null if such constraint does not exist
    • getConstraints

      Collection<Constraint> getConstraints()
      Returns all constraints defined in the ConstraintProvider.
      Returns:
      never null, iteration order is undefined
    • getConstraintsPerGroup

      Collection<Constraint> getConstraintsPerGroup(String constraintGroup)
      Returns all constraints from getConstraints() that belong to the given group.
      Parameters:
      constraintGroup - never null
      Returns:
      never null, iteration order is undefined
    • getConstraintGroups

      Set<String> getConstraintGroups()
      Returns constraint groups with at least one constraint in it.
      Returns:
      never null, iteration order is undefined