Interface NodeValidatorPlugin
-
- All Known Implementing Classes:
TimestampValidationStrategy
public interface NodeValidatorPlugin
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
NodeValidatorPlugin.Context
Validation context to pass to each NodeValidatorPlugin.static interface
NodeValidatorPlugin.Emitter
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
EMPTY_STRING_ARRAY
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(Shape shape, Node value, NodeValidatorPlugin.Context context, NodeValidatorPlugin.Emitter emitter)
Applies the plugin to the given shape, node value, and model.static java.util.List<NodeValidatorPlugin>
getBuiltins()
-
-
-
Method Detail
-
apply
void apply(Shape shape, Node value, NodeValidatorPlugin.Context context, NodeValidatorPlugin.Emitter emitter)
Applies the plugin to the given shape, node value, and model.- Parameters:
shape
- Shape being checked.value
- Value being evaluated.context
- Evaluation context.emitter
- Consumer to notify of validation event locations and messages.
-
getBuiltins
static java.util.List<NodeValidatorPlugin> getBuiltins()
- Returns:
- Gets the built-in Node validation plugins.
-
-