public class IsElementOf extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor, LongCellProcessor, StringCellProcessor
IsIncludedIn as
 the Collection is modifiable, so it can be used with other processors such as
 Collector to enforce referential integrity.next| Constructor and Description | 
|---|
| IsElementOf(Collection<Object> collection)Constructs a new IsElementOf, which ensures that the input value is an element of a Collection. | 
| IsElementOf(Collection<Object> collection,
           CellProcessor next)Constructs a new IsElementOf, which ensures that the input value is an element of a Collection, 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, validateInputNotNullpublic IsElementOf(Collection<Object> collection)
collection - the collection to checkNullPointerException - if collection is nullpublic IsElementOf(Collection<Object> collection, CellProcessor next)
collection - the collection to checknext - the next processor in the chainNullPointerException - if collection or next is nullpublic Object execute(Object value, CsvContext context)
execute in interface CellProcessorSuperCsvConstraintViolationException - if value isn't in the CollectionCopyright © 2007-2013 Super CSV. All Rights Reserved.