Interface IModelConstrained
-
- All Superinterfaces:
IConstrained
,IValueConstrained
- All Known Subinterfaces:
IAssemblyDefinition
,gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureModelConstrained
public interface IModelConstrained extends IValueConstrained
Represents a container of rules constraining the effective model of a Metaschema assembly data instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addConstraint(ICardinalityConstraint constraint)
void
addConstraint(IIndexConstraint constraint)
void
addConstraint(IUniqueConstraint constraint)
List<? extends ICardinalityConstraint>
getHasCardinalityConstraints()
Get the collection of cardinality constraints, if any.List<? extends IIndexConstraint>
getIndexConstraints()
Get the collection of index constraints, if any.List<? extends IUniqueConstraint>
getUniqueConstraints()
Get the collection of unique constraints, if any.-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.constraint.IConstrained
getConstraints
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.constraint.IValueConstrained
addConstraint, addConstraint, addConstraint, addConstraint, getAllowedValuesConstraints, getExpectConstraints, getIndexHasKeyConstraints, getMatchesConstraints
-
-
-
-
Method Detail
-
getIndexConstraints
@NonNull List<? extends IIndexConstraint> getIndexConstraints()
Get the collection of index constraints, if any.- Returns:
- the constraints or an empty list
-
getUniqueConstraints
@NonNull List<? extends IUniqueConstraint> getUniqueConstraints()
Get the collection of unique constraints, if any.- Returns:
- the constraints or an empty list
-
getHasCardinalityConstraints
@NonNull List<? extends ICardinalityConstraint> getHasCardinalityConstraints()
Get the collection of cardinality constraints, if any.- Returns:
- the constraints or an empty list
-
addConstraint
void addConstraint(@NonNull IIndexConstraint constraint)
-
addConstraint
void addConstraint(@NonNull IUniqueConstraint constraint)
-
addConstraint
void addConstraint(@NonNull ICardinalityConstraint constraint)
-
-