Module dev.metaschema.core
Class AssemblyTargetedConstraints
java.lang.Object
dev.metaschema.core.model.constraint.AbstractTargetedConstraints<IModelConstrained>
dev.metaschema.core.model.constraint.ModelTargetedConstraints
dev.metaschema.core.model.constraint.AssemblyTargetedConstraints
- All Implemented Interfaces:
IFeatureModelConstrained,IFeatureValueConstrained,IModelConstrained,ITargetedConstraints,IValueConstrained
A set of constraints targeting a
IAssemblyDefinition based on a
target Metapath expression.-
Constructor Summary
ConstructorsConstructorDescriptionAssemblyTargetedConstraints(ISource source, Supplier<List<IMetapathExpression>> targets, IModelConstrained constraints) Construct a new set of targeted constraints. -
Method Summary
Modifier and TypeMethodDescriptionvoidtarget(IAssemblyDefinition definition) Apply the constraint to the provided definition.voidtarget(IFieldDefinition definition) Apply the constraint to the provided definition.voidtarget(IFlagDefinition definition) Apply the constraint to the provided definition.Methods inherited from class dev.metaschema.core.model.constraint.ModelTargetedConstraints
applyToMethods inherited from class dev.metaschema.core.model.constraint.AbstractTargetedConstraints
applyTo, getConstraintSupport, getSource, getTargets, wrongDefinitionTypeTargetedMethods 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.IFeatureModelConstrained
addConstraint, addConstraint, addConstraint, getConstraintSupport, getHasCardinalityConstraints, getIndexConstraints, getUniqueConstraintsMethods 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
-
Constructor Details
-
AssemblyTargetedConstraints
public AssemblyTargetedConstraints(@NonNull ISource source, @NonNull Supplier<List<IMetapathExpression>> targets, @NonNull IModelConstrained constraints) Construct a new set of targeted constraints.- Parameters:
source- information about the resource the constraints were sources fromtargets- a supplier to get the Metapath expressions that can be used to find matching targetsconstraints- the constraints to apply to matching targets
-
-
Method Details
-
target
Description copied from interface:ITargetedConstraintsApply the constraint to the provided definition.- Specified by:
targetin interfaceITargetedConstraints- Overrides:
targetin classAbstractTargetedConstraints<IModelConstrained>- Parameters:
definition- the definition to apply the constraint to
-
target
Description copied from interface:ITargetedConstraintsApply the constraint to the provided definition.- Specified by:
targetin interfaceITargetedConstraints- Overrides:
targetin classAbstractTargetedConstraints<IModelConstrained>- Parameters:
definition- the definition to apply the constraint to
-
target
Description copied from interface:ITargetedConstraintsApply the constraint to the provided definition.- Specified by:
targetin interfaceITargetedConstraints- Overrides:
targetin classModelTargetedConstraints- Parameters:
definition- the definition to apply the constraint to
-