public static final class NodeValidatorPlugin.Context
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Model |
model()
Get the model being evaluated.
|
java.util.Set<Shape> |
select(Selector selector)
Select and memoize shapes from the model using a Selector.
|
public Context(Model model)
model
- Model being evaluated.public Model model()
public java.util.Set<Shape> select(Selector selector)
The cache used by this method is not thread-safe, though that's fine because NodeValidatorPlugins using the same Context all run within the same thread.
selector
- Selector to evaluate.