Class NodeValidationVisitor

All Implemented Interfaces:

public final class NodeValidationVisitor extends Object implements ShapeVisitor<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.