A sample of this can be found in the unit test ProcessorTestBean and is annotated as follows.
@PreAssignmentProcessor(processor = ConvertEmptyOrBlankStringsToNull.class)
@CsvBindByName(column = "name")
private String beanName;
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | processString(String value)
Implements com. Method that contains the code that will transform a string into the value that will be validated and converted into the bean field. |
| public void | setParameterString(String
Information used by the processor to process the string value)Implements com. This method is unused in this implementation as we are converting to null. |
| ConvertEmptyOrBlankStringsToNull | back to summary |
|---|---|
| public ConvertEmptyOrBlankStringsToNull() Default Constructor. | |
| processString | back to summary |
|---|---|
| public String processString(String value) Implements com. Doc from com. Method that contains the code that will transform a string into the value that will be validated and converted into the bean field.
| |
| setParameterString | back to summary |
|---|---|
| public void setParameterString(String value) Implements com. This method is unused in this implementation as we are converting to null. Any calls to this method are ignored. | |