Interface ConstraintMetaModel


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

    • getConstraint

      @Nullable Constraint getConstraint(@NonNull ConstraintRef constraintRef)
      Returns the constraint for the given reference.
      Returns:
      null if such constraint does not exist
    • getConstraints

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

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

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