BoolCellProcessor, CellProcessor, DateCellProcessor, DoubleCellProcessor, LongCellProcessor, StringCellProcessorpublic class IsIncludedIn extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor, LongCellProcessor, StringCellProcessor
IsElementOf instead.next| Constructor | Description |
|---|---|
IsIncludedIn(Object[] possibleValues) |
Constructs a new IsIncludedIn processor, which ensures that the input value belongs to a specific set of
given values.
|
IsIncludedIn(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(Set<Object> possibleValues) |
Constructs a new IsIncludedIn processor, which ensures that the input value belongs to a specific set of
given values.
|
IsIncludedIn(Set<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 | 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, validateInputNotNullpublic IsIncludedIn(Set<Object> possibleValues)
possibleValues - the Set of valuesNullPointerException - if possibleValues is nullIllegalArgumentException - if possibleValues is emptypublic IsIncludedIn(Set<Object> possibleValues, CellProcessor next)
possibleValues - the Set of valuesnext - the next processor in the chainNullPointerException - if possibleValues or next is nullIllegalArgumentException - if possibleValues is emptypublic IsIncludedIn(Object[] possibleValues)
possibleValues - the array of valuesNullPointerException - if possibleValues is nullIllegalArgumentException - if possibleValues is emptypublic IsIncludedIn(Object[] possibleValues, CellProcessor next)
possibleValues - the array of valuesnext - the next processor in the chainNullPointerException - if possibleValues or next is nullIllegalArgumentException - if possibleValues is emptypublic Object execute(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–2018 Super CSV. All rights reserved.