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 context)
        Sets an optional starting context of the validator that is prepended to each emitted validation event message.
        Parameters:
        context - 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.
      • allowBoxedNull

        public NodeValidationVisitor.Builder allowBoxedNull​(boolean allowBoxedNull)
        Configure how null values are handled when they are provided for boxed types.

        By default, null values are not allowed for boxed types.

        Parameters:
        allowBoxedNull - Set to true to allow null values for boxed shapes.
        Returns:
        Returns the builder.