Interface Validator

    • Method Detail

      • validate

        default ValidationContext validate​(Object input)
        Validates the given input.
        Parameters:
        input - the value to validate
        Returns:
        the validation context with the outcome of the validation
      • validate

        default ValidationContext validate​(Object input,
                                           ValidatorConfig config)
        Validates the given input with an additional config.
        Parameters:
        input - the value to validate
        config - parameterization for the current validation
        Returns:
        the validation context with the outcome of the validation
      • validate

        default ValidationContext validate​(Object input,
                                           ValidationContext context)
        Validates the given input.
        Parameters:
        input - the value to validate
        context - the validation context
        Returns:
        the validation context with the outcome of the validation
      • validate

        default ValidationContext validate​(Object input,
                                           String inputHint)
        Validates the given input with an additional inputHint.
        Parameters:
        input - the value to validate
        inputHint - an optional input hint to guide the validation
        Returns:
        the validation context with the outcome of the validation
      • validate

        default ValidationContext validate​(Object input,
                                           String inputHint,
                                           ValidatorConfig config)
        Validates the given input with an additional inputHint.
        Parameters:
        input - the value to validate
        inputHint - an optional input hint to guide the validation
        config - parameterization for the current validation
        Returns:
        the validation context with the outcome of the validation
      • validate

        default ValidationContext validate​(Object input,
                                           String inputHint,
                                           ValidationContext context)
        Validates the given input with an additional inputHint.
        Parameters:
        input - the value to validate
        inputHint - an optional input hint to guide the validation
        context - the validation context
        Returns:
        the validation context with the outcome of the validation
      • validate

        ValidationContext validate​(Object input,
                                   String inputHint,
                                   ValidationContext context,
                                   ValidatorConfig config)
        Validates the given input with an additional inputHint and config.
        Parameters:
        input - the value to validate
        inputHint - an optional input hint to guide the validation
        context - the validation context
        config - parameterization for the current validation
        Returns:
        the validation context with the outcome of the validation
      • close

        default void close()
        Specified by:
        close in interface Provider