public class StrMinMax extends CellProcessorAdaptor implements StringCellProcessor
toString() method.next| Constructor and Description |
|---|
StrMinMax(long min,
long max)
Constructs a new StrMinMax processor, which ensures that the input data has a string length between the
supplied min and max values (both inclusive).
|
StrMinMax(long min,
long max,
CellProcessor next)
Constructs a new StrMinMax processor, which ensures that the input data has a string length between the
supplied min and max values (both inclusive), then calls the next processor in the chain.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(java.lang.Object value,
CsvContext context)
This method is invoked by the framework when the processor needs to process data or check constraints.
|
toString, validateInputNotNullpublic StrMinMax(long min,
long max)
min - the minimum String lengthmax - the maximum String lengthjava.lang.IllegalArgumentException - if max < min, or min is < 0public StrMinMax(long min,
long max,
CellProcessor next)
min - the minimum String lengthmax - the maximum String lengthnext - the next processor in the chainjava.lang.NullPointerException - if next is nulljava.lang.IllegalArgumentException - if max < min, or min is < 0public java.lang.Object execute(java.lang.Object value,
CsvContext context)
execute in interface CellProcessorvalue - the value to be processedcontext - the CSV contextSuperCsvCellProcessorException - if value is nullSuperCsvConstraintViolationException - if length < min or length > maxCopyright © 2007-2014 Super CSV. All Rights Reserved.