Interface ConstraintMetaModel
public interface ConstraintMetaModel
Provides information about the known constraints.
Works in combination with
ConstraintProvider.-
Method Summary
Modifier and TypeMethodDescription@Nullable ConstraintgetConstraint(@NonNull ConstraintRef constraintRef) Returns the constraint for the given reference.Returns constraint groups with at least one constraint in it.@NonNull Collection<Constraint>Returns all constraints defined in theConstraintProvider.@NonNull Collection<Constraint>getConstraintsPerGroup(@NonNull String constraintGroup) Returns all constraints fromgetConstraints()that belong to the given group.
-
Method Details
-
getConstraint
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 theConstraintProvider.- Returns:
- iteration order is undefined
-
getConstraintsPerGroup
Returns all constraints fromgetConstraints()that belong to the given group.- Returns:
- iteration order is undefined
-
getConstraintGroups
Returns constraint groups with at least one constraint in it.- Returns:
- iteration order is undefined
-