Class MetaConstraintSet.Context

java.lang.Object
dev.metaschema.core.model.constraint.MetaConstraintSet.Context
Enclosing class:
MetaConstraintSet

public static class MetaConstraintSet.Context extends Object
A nestable context, targeted by a set of metapath expressions, to apply constraints within.
  • Constructor Details

    • Context

      public Context(@Nullable MetaConstraintSet.Context parent, @NonNull ISource source, @NonNull List<IMetapathExpression> metapaths, @NonNull IModelConstrained modelConstrained)
      Construct a new context.
      Parameters:
      parent - the parent content or null if there is no parent
      source - the source of the constraint set
      metapaths - the metapath expressions the context applies to
      modelConstrained - the constraints to apply to items matching one of the metapaths
  • Method Details

    • addAll

      public void addAll(@NonNull Collection<MetaConstraintSet.Context> children)
      Add a collection of child contexts to this context.
      Parameters:
      children - the children context to add