public class HashMapper extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor, LongCellProcessor, StringCellProcessor
next| Constructor and Description | 
|---|
| HashMapper(Map<Object,Object> mapping)Constructs a new HashMapper processor, which maps from one object to another, by looking up a
 Map with the input as the key, and returning its corresponding value. | 
| HashMapper(Map<Object,Object> mapping,
          BoolCellProcessor next)Constructs a new HashMapper processor, which maps from one object to another, by looking up a
 Map with the input as the key, and returning its corresponding value. | 
| HashMapper(Map<Object,Object> mapping,
          Object defaultValue)Constructs a new HashMapper processor, which maps from one object to another, by looking up a
 Map with the input as the key, and returning its corresponding value. | 
| HashMapper(Map<Object,Object> mapping,
          Object defaultValue,
          BoolCellProcessor next)Constructs a new HashMapper processor, which maps from one object to another, by looking up a
 Map with the input as the key, and returning its corresponding value. | 
| 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 HashMapper(Map<Object,Object> mapping)
mapping - the MapNullPointerException - if mapping is nullIllegalArgumentException - if mapping is emptypublic HashMapper(Map<Object,Object> mapping, Object defaultValue)
mapping - the MapdefaultValue - the value to return if no mapping is foundNullPointerException - if mapping is nullIllegalArgumentException - if mapping is emptypublic HashMapper(Map<Object,Object> mapping, BoolCellProcessor next)
mapping - the Mapnext - the next processor in the chainNullPointerException - if mapping or next is nullIllegalArgumentException - if mapping is emptypublic HashMapper(Map<Object,Object> mapping, Object defaultValue, BoolCellProcessor next)
mapping - the MapdefaultValue - the value to return if no mapping is foundnext - the next processor in the chainNullPointerException - if mapping or next is nullIllegalArgumentException - if mapping is emptypublic Object execute(Object value, CsvContext context)
execute in interface CellProcessorSuperCsvCellProcessorException - if value is nullCopyright © 2007-2013 Super CSV. All Rights Reserved.