Top Description Methods
com.opencsv.bean.validators

public @Interface PreAssignmentValidator

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:FIELD
Imports
java.lang.annotation.*

Specifies the binding of a validator to a field in a bean. This validator will run against the string that will be converted and assigned to the field and will be run prior to the conversion.
Author
Scott Conway
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

Parameter string required by the StringValidator
paramString
()

This is used to store additional information needed by the StringValidator.

public Class<? extends StringValidator>

Returns:

The class of the validator that will validate the bean field string value
validator
()

Returns the validator that will validate the string.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

paramStringback to summary
public String paramString()

This is used to store additional information needed by the StringValidator. This could, for example, contain a regular expression that will be applied to the data.

Returns:String

Parameter string required by the StringValidator

validatorback to summary
public Class<? extends StringValidator> validator()

Returns the validator that will validate the string.

Returns:Class<? extends StringValidator>

The class of the validator that will validate the bean field string value