Interface NodeValidatorPlugin
-
- All Known Implementing Classes:
TimestampValidationStrategy
public interface NodeValidatorPlugin
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNodeValidatorPlugin.ContextValidation context to pass to each NodeValidatorPlugin.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(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()
-
-
-
Method Detail
-
apply
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.- 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.
-
-