public class IsIncludedIn extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor, LongCellProcessor, StringCellProcessor
IsElementOf instead.next| Constructor and Description |
|---|
IsIncludedIn(java.lang.Object[] possibleValues)
Constructs a new IsIncludedIn processor, which ensures that the input value belongs to a specific set of
given values.
|
IsIncludedIn(java.lang.Object[] possibleValues,
CellProcessor next)
Constructs a new IsIncludedIn processor, which ensures that the input value belongs to a specific set of
given values, then calls the next processor in the chain.
|
IsIncludedIn(java.util.Set<java.lang.Object> possibleValues)
Constructs a new IsIncludedIn processor, which ensures that the input value belongs to a specific set of
given values.
|
IsIncludedIn(java.util.Set<java.lang.Object> possibleValues,
CellProcessor next)
Constructs a new IsIncludedIn processor, which ensures that the input value belongs to a specific set of
given values, 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 IsIncludedIn(java.util.Set<java.lang.Object> possibleValues)
possibleValues - the Set of valuesjava.lang.NullPointerException - if possibleValues is nulljava.lang.IllegalArgumentException - if possibleValues is emptypublic IsIncludedIn(java.util.Set<java.lang.Object> possibleValues,
CellProcessor next)
possibleValues - the Set of valuesnext - the next processor in the chainjava.lang.NullPointerException - if possibleValues or next is nulljava.lang.IllegalArgumentException - if possibleValues is emptypublic IsIncludedIn(java.lang.Object[] possibleValues)
possibleValues - the array of valuesjava.lang.NullPointerException - if possibleValues is nulljava.lang.IllegalArgumentException - if possibleValues is emptypublic IsIncludedIn(java.lang.Object[] possibleValues,
CellProcessor next)
possibleValues - the array of valuesnext - the next processor in the chainjava.lang.NullPointerException - if possibleValues or next is nulljava.lang.IllegalArgumentException - if possibleValues is emptypublic 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 value isn't one of the possible valuesCopyright © 2007-2014 Super CSV. All Rights Reserved.