Interface NodeValidatorPlugin

All Known Implementing Classes:

public interface NodeValidatorPlugin
Applies pluggable validation when validating Node values against the schema of a Shape (e.g., when validating that the values provided for a trait in the model are valid for the shape of the trait).
  • Field Details


      static final String[] EMPTY_STRING_ARRAY
  • Method Details

    • apply

      void apply(Shape shape, Node value, NodeValidatorPlugin.Context context, NodeValidatorPlugin.Emitter emitter)
      Applies the plugin to the given shape, node value, and model.
      shape - Shape being checked.
      value - Value being evaluated.
      context - Evaluation context.
      emitter - Consumer to notify of validation event locations and messages.
    • getBuiltins

      static List<NodeValidatorPlugin> getBuiltins()
      Gets the built-in Node validation plugins.