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.
next
Constructor and Description |
---|
StrNotNullOrEmpty()
Constructs a new StrNotNullOrEmpty processor, which checks for null/empty Strings.
|
StrNotNullOrEmpty(CellProcessor next)
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 |
---|---|
Object |
execute(Object value,
CsvContext context)
This method is invoked by the framework when the processor needs to process data or check constraints.
|
toString, validateInputNotNull
public StrNotNullOrEmpty()
public StrNotNullOrEmpty(CellProcessor next)
next
- the next processor in the chainNullPointerException
- if next is nullpublic Object execute(Object value, CsvContext context)
execute
in interface CellProcessor
value
- the value to be processedcontext
- the CSV contextSuperCsvCellProcessorException
- if value is null or isn't a StringSuperCsvConstraintViolationException
- if value is an empty StringCopyright © 2007–2015 Super CSV. All rights reserved.