Module dev.metaschema.core
Interface ITargetedConstraints
- All Superinterfaces:
IValueConstrained
- All Known Implementing Classes:
AbstractTargetedConstraints,AssemblyTargetedConstraints,FieldTargetedConstraints,FlagTargetedConstraints,ModelTargetedConstraints
Represents a set of constraints that target a given definition using a target
Metapath expression.
-
Method Summary
Modifier and TypeMethodDescriptionGet the Metapath expressions used to identify the targets of the constraint.voidtarget(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 interface dev.metaschema.core.model.constraint.IValueConstrained
addConstraint, addConstraint, addConstraint, addConstraint, addConstraint, addLetExpression, getAllowedValuesConstraints, getConstraints, getExpectConstraints, getIndexHasKeyConstraints, getLetExpressions, getMatchesConstraints, getReportConstraints, getSource
-
Method Details
-
getTargets
Get the Metapath expressions used to identify the targets of the constraint.- Returns:
- the Metapath expressions identifying the targets of the associated constraints
-
target
Apply the constraint to the provided definition.- Parameters:
definition- the definition to apply the constraint to
-
target
Apply the constraint to the provided definition.- Parameters:
definition- the definition to apply the constraint to
-
target
Apply the constraint to the provided definition.- Parameters:
definition- the definition to apply the constraint to
-