- All Superinterfaces:
IValueConstrained
- All Known Subinterfaces:
IAssemblyDefinition,IBindingDefinitionModelAssembly,IBoundDefinitionModelAssembly,IFeatureModelConstrained
- All Known Implementing Classes:
AbstractGlobalAssemblyDefinition,AbstractInlineAssemblyDefinition,AssemblyConstraintSet,AssemblyTargetedConstraints,ModelTargetedConstraints
Represents a container of rules constraining the effective model of a
Metaschema assembly data instance.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstraint(ICardinalityConstraint constraint) Add a new constraint.voidaddConstraint(IIndexConstraint constraint) Add a new constraint.voidaddConstraint(IUniqueConstraint constraint) Add a new constraint.List<? extends ICardinalityConstraint>Get the collection of cardinality constraints, if any.List<? extends IIndexConstraint>Get the collection of index constraints, if any.List<? extends IUniqueConstraint>Get the collection of unique constraints, if any.Methods inherited from interface dev.metaschema.core.model.constraint.IValueConstrained
addConstraint, addConstraint, addConstraint, addConstraint, addConstraint, addLetExpression, getAllowedValuesConstraints, getConstraints, getExpectConstraints, getIndexHasKeyConstraints, getLetExpressions, getMatchesConstraints, getReportConstraints, getSource
-
Method Details
-
getIndexConstraints
Get the collection of index constraints, if any.- Returns:
- the constraints or an empty list
-
getUniqueConstraints
Get the collection of unique constraints, if any.- Returns:
- the constraints or an empty list
-
getHasCardinalityConstraints
Get the collection of cardinality constraints, if any.- Returns:
- the constraints or an empty list
-
addConstraint
Add a new constraint.- Parameters:
constraint- the constraint to add
-
addConstraint
Add a new constraint.- Parameters:
constraint- the constraint to add
-
addConstraint
Add a new constraint.- Parameters:
constraint- the constraint to add
-