Class ModelTargetedConstraints

java.lang.Object
dev.metaschema.core.model.constraint.AbstractTargetedConstraints<IModelConstrained>
dev.metaschema.core.model.constraint.ModelTargetedConstraints
All Implemented Interfaces:
IFeatureModelConstrained, IFeatureValueConstrained, IModelConstrained, ITargetedConstraints, IValueConstrained
Direct Known Subclasses:
AssemblyTargetedConstraints

public class ModelTargetedConstraints extends AbstractTargetedConstraints<IModelConstrained> implements IFeatureModelConstrained
Represents a set of constraints targeted at model definitions using Metapath expressions.
  • Constructor Details

    • ModelTargetedConstraints

      public ModelTargetedConstraints(@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 from
      targets - a supplier to get the Metapath expressions that can be used to find matching targets
      constraints - the constraints to apply to matching targets
  • Method Details