public class StrNotNullOrEmpty extends CellProcessorAdaptor implements StringCellProcessor
You should only use this processor, when a column must be non-null, but you do not need to apply any other processor to the column.
If you apply other processors to the column, you can safely omit this processor as all other processors should do a null-check on its input.
|Constructor and Description|
Constructs a new StrNotNullOrEmpty processor, which checks for null/empty Strings.
Constructs a new StrNotNullOrEmpty processor, which checks for null/empty Strings, then calls the next processor in the chain.
|Modifier and Type||Method and Description|
This method is invoked by the framework when the processor needs to process data or check constraints.
public Object execute(Object value, CsvContext context)
value- the value to be processed
context- the CSV context
SuperCsvCellProcessorException- if value is null or isn't a String
SuperCsvConstraintViolationException- if value is an empty String
Copyright © 2007–2015 Super CSV. All rights reserved.