Top Description Methods
com.univocity.parsers.conversions

public Interface Validator<T>

Type Parameters
<T>
the expected type of the value to be validated

Defines a custom validation process to be executed when reading or writing values into a field of a java bean that is annotated with com.univocity.parsers.annotations.Validate

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a validation error message if the given value fails the validation process. If the value is acceptable this method can return either a blank String or null
validate
(T
the value to be validated
value
)

Executes the required validations over a given value, returning any validation error messages that are applicable.

Method Detail

validateback to summary
public String validate(T value)

Executes the required validations over a given value, returning any validation error messages that are applicable. If no validation errors are found, returns a blank String or null

Parameters
value:T

the value to be validated

Returns:String

a validation error message if the given value fails the validation process. If the value is acceptable this method can return either a blank String or null