public interface NodeValidatorPlugin
Modifier and Type | Interface and Description |
---|---|
static class |
NodeValidatorPlugin.Context
Validation context to pass to each NodeValidatorPlugin.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(Shape shape,
Node value,
NodeValidatorPlugin.Context context,
java.util.function.BiConsumer<FromSourceLocation,java.lang.String> emitter)
Applies the plugin to the given shape, node value, and model.
|
static java.util.List<NodeValidatorPlugin> |
getBuiltins() |
void apply(Shape shape, Node value, NodeValidatorPlugin.Context context, java.util.function.BiConsumer<FromSourceLocation,java.lang.String> emitter)
shape
- Shape being checked.value
- Value being evaluated.context
- Evaluation context.emitter
- Consumer to notify of validation event locations and messages.static java.util.List<NodeValidatorPlugin> getBuiltins()