Module dev.metaschema.core
Class FlagTargetedConstraints
java.lang.Object
dev.metaschema.core.model.constraint.AbstractTargetedConstraints<IValueConstrained>
dev.metaschema.core.model.constraint.FlagTargetedConstraints
- All Implemented Interfaces:
IFeatureValueConstrained,ITargetedConstraints,IValueConstrained
A set of constraints targeting a
IFlagDefinition based on a target
Metapath expression.-
Constructor Summary
ConstructorsConstructorDescriptionFlagTargetedConstraints(ISource source, Supplier<List<IMetapathExpression>> targets, IValueConstrained 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.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.IFeatureValueConstrained
addConstraint, addConstraint, addConstraint, addConstraint, addConstraint, addLetExpression, getAllowedValuesConstraints, getConstraints, getExpectConstraints, getIndexHasKeyConstraints, getLetExpressions, getMatchesConstraints, getReportConstraints
-
Constructor Details
-
FlagTargetedConstraints
public FlagTargetedConstraints(@NonNull ISource source, @NonNull Supplier<List<IMetapathExpression>> targets, @NonNull IValueConstrained 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<IValueConstrained>- 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<IValueConstrained>- 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<IValueConstrained>- Parameters:
definition- the definition to apply the constraint to
-