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