Interface ITargetedConstraints

All Superinterfaces:
IValueConstrained
All Known Implementing Classes:
AbstractTargetedConstraints, AssemblyTargetedConstraints, FieldTargetedConstraints, FlagTargetedConstraints, ModelTargetedConstraints

public interface ITargetedConstraints extends IValueConstrained
Represents a set of constraints that target a given definition using a target Metapath expression.
  • Method Details

    • getTargets

      @NonNull List<IMetapathExpression> 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

      void target(@NonNull IFlagDefinition definition)
      Apply the constraint to the provided definition.
      Parameters:
      definition - the definition to apply the constraint to
    • target

      void target(@NonNull IFieldDefinition definition)
      Apply the constraint to the provided definition.
      Parameters:
      definition - the definition to apply the constraint to
    • target

      void target(@NonNull IAssemblyDefinition definition)
      Apply the constraint to the provided definition.
      Parameters:
      definition - the definition to apply the constraint to