Module dev.metaschema.core
Class MetaConstraintSet.Context
java.lang.Object
dev.metaschema.core.model.constraint.MetaConstraintSet.Context
- Enclosing class:
- MetaConstraintSet
A nestable context, targeted by a set of metapath expressions, to apply
constraints within.
-
Constructor Summary
ConstructorsConstructorDescriptionContext(MetaConstraintSet.Context parent, ISource source, List<IMetapathExpression> metapaths, IModelConstrained modelConstrained) Construct a new context. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(Collection<MetaConstraintSet.Context> children) Add a collection of child contexts to this context.
-
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 ornullif there is no parentsource- the source of the constraint setmetapaths- the metapath expressions the context applies tomodelConstrained- the constraints to apply to items matching one of the metapaths
-
-
Method Details
-
addAll
Add a collection of child contexts to this context.- Parameters:
children- the children context to add
-