java.lang.Object
dev.metaschema.core.model.constraint.ValueConstraintSet
dev.metaschema.core.model.constraint.AssemblyConstraintSet
- All Implemented Interfaces:
IModelConstrained,IValueConstrained
Represents a container of rules constraining the effective model of a
Metaschema assembly data instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddConstraint(ICardinalityConstraint constraint) Add a new constraint.final voidaddConstraint(IIndexConstraint constraint) Add a new constraint.final voidaddConstraint(IUniqueConstraint constraint) Add a new constraint.Get the collection of cardinality constraints, if any.Get the collection of index constraints, if any.Get the collection of unique constraints, if any.Methods inherited from class dev.metaschema.core.model.constraint.ValueConstraintSet
addConstraint, addConstraint, addConstraint, addConstraint, addConstraint, addLetExpression, getAllowedValuesConstraints, getConstraints, getConstraintsInternal, getExpectConstraints, getIndexHasKeyConstraints, getLetExpressions, getLock, getMatchesConstraints, getReportConstraints, getSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.metaschema.core.model.constraint.IValueConstrained
addConstraint, addConstraint, addConstraint, addConstraint, addConstraint, addLetExpression, getAllowedValuesConstraints, getConstraints, getExpectConstraints, getIndexHasKeyConstraints, getLetExpressions, getMatchesConstraints, getReportConstraints, getSource
-
Constructor Details
-
AssemblyConstraintSet
Construct a new constraint set.- Parameters:
source- information about the resource the constraints were loaded from
-
-
Method Details
-
getIndexConstraints
Description copied from interface:IModelConstrainedGet the collection of index constraints, if any.- Specified by:
getIndexConstraintsin interfaceIModelConstrained- Returns:
- the constraints or an empty list
-
getUniqueConstraints
Description copied from interface:IModelConstrainedGet the collection of unique constraints, if any.- Specified by:
getUniqueConstraintsin interfaceIModelConstrained- Returns:
- the constraints or an empty list
-
getHasCardinalityConstraints
Description copied from interface:IModelConstrainedGet the collection of cardinality constraints, if any.- Specified by:
getHasCardinalityConstraintsin interfaceIModelConstrained- Returns:
- the constraints or an empty list
-
addConstraint
Description copied from interface:IModelConstrainedAdd a new constraint.- Specified by:
addConstraintin interfaceIModelConstrained- Parameters:
constraint- the constraint to add
-
addConstraint
Description copied from interface:IModelConstrainedAdd a new constraint.- Specified by:
addConstraintin interfaceIModelConstrained- Parameters:
constraint- the constraint to add
-
addConstraint
Description copied from interface:IModelConstrainedAdd a new constraint.- Specified by:
addConstraintin interfaceIModelConstrained- Parameters:
constraint- the constraint to add
-