Class NodeValidationVisitor.Builder

    • Method Detail

      • model

        public NodeValidationVisitor.Builder model​(Model model)
        Sets the required model to use when traversing walking shapes during validation.
        Parameters:
        model - Model that contains shapes to validate.
        Returns:
        Returns the builder.
      • value

        public NodeValidationVisitor.Builder value​(Node value)
        Sets the required node value to validate.
        Parameters:
        value - Value to validate.
        Returns:
        Returns the builder.
      • eventId

        public NodeValidationVisitor.Builder eventId​(java.lang.String id)
        Sets an optional custom event ID to use for created validation events.
        Parameters:
        id - Custom event ID.
        Returns:
        Returns the builder.
      • startingContext

        public NodeValidationVisitor.Builder startingContext​(java.lang.String contextText)
        Sets an optional starting context of the validator that is prepended to each emitted validation event message.
        Parameters:
        contextText - Starting event message content.
        Returns:
        Returns the builder.
      • eventShapeId

        public NodeValidationVisitor.Builder eventShapeId​(ShapeId eventShapeId)
        Sets an optional shape ID that is used as the shape ID in each validation event emitted by the validator.
        Parameters:
        eventShapeId - Shape ID to set on every validation event.
        Returns:
        Returns the builder.