Class NodeValidationVisitor

  • All Implemented Interfaces:
    ShapeVisitor<java.util.List<ValidationEvent>>

    public final class NodeValidationVisitor
    extends java.lang.Object
    implements ShapeVisitor<java.util.List<ValidationEvent>>
    Validates Node values provided for Shape definitions.

    This visitor validator is used to ensure that values provided for custom traits and examples are correct for their schema definitions. A map of shape types to a list of additional validators can be provided to perform additional, non-standard, validation of these values. For example, this can be used to provide additional validation needed for custom traits that are applied to the shape of the data.