Module dev.metaschema.core
Interface IFeatureModelConstrained
- All Superinterfaces:
IFeatureValueConstrained,IModelConstrained,IValueConstrained
- All Known Subinterfaces:
IAssemblyDefinition,IBindingDefinitionModelAssembly,IBoundDefinitionModelAssembly
- All Known Implementing Classes:
AbstractGlobalAssemblyDefinition,AbstractInlineAssemblyDefinition,AssemblyTargetedConstraints,ModelTargetedConstraints
A marker interface for a Metaschema model construct (i.e. assembly, field)
that can be constrained using Metaschema constraints.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddConstraint(ICardinalityConstraint constraint) Add a new constraint.default voidaddConstraint(IIndexConstraint constraint) Add a new constraint.default voidaddConstraint(IUniqueConstraint constraint) Add a new constraint.Lazy initialize the instances for the constraints when the constraints are first accessed.default List<? extends ICardinalityConstraint>Get the collection of cardinality constraints, if any.default List<? extends IIndexConstraint>Get the collection of index constraints, if any.default List<? extends IUniqueConstraint>Get the collection of unique constraints, if any.Methods inherited from interface dev.metaschema.core.model.constraint.IFeatureValueConstrained
addConstraint, addConstraint, addConstraint, addConstraint, addConstraint, addLetExpression, getAllowedValuesConstraints, getConstraints, getExpectConstraints, getIndexHasKeyConstraints, getLetExpressions, getMatchesConstraints, getReportConstraintsMethods inherited from interface dev.metaschema.core.model.constraint.IValueConstrained
getSource
-
Method Details
-
getConstraintSupport
IModelConstrained getConstraintSupport()Description copied from interface:IFeatureValueConstrainedLazy initialize the instances for the constraints when the constraints are first accessed.- Specified by:
getConstraintSupportin interfaceIFeatureValueConstrained- Returns:
- the constraints instance
-
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
-