public class ParseZoneId extends CellProcessorAdaptor
next
Constructor and Description |
---|
ParseZoneId()
Constructs a new ParseZoneId processor, which parses a
String recognized by
ZoneId.of(String) as a ZoneId. |
ParseZoneId(CellProcessor next)
Constructs a new ParseZoneId processor, which parses a
String as a ZoneId, then calls the next processor in the
chain.
|
ParseZoneId(Map<String,String> aliasMap)
Constructs a new ParseZoneId processor, which parses a
String as a ZoneId using the supplied Zone ID mappings.
|
ParseZoneId(Map<String,String> aliasMap,
CellProcessor next)
Constructs a new ParseZoneId processor, which parses a
String as a ZoneId using the supplied Zone ID mappings, 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, validateInputNotNull
public ParseZoneId()
ZoneId.of(String)
as a ZoneId.public ParseZoneId(CellProcessor next)
next
- the next processor in the chainParseZoneId()
public ParseZoneId(Map<String,String> aliasMap)
aliasMap
- a Map from custom zone IDs to canonical representationsZoneId.of(String, Map)
public ParseZoneId(Map<String,String> aliasMap, CellProcessor next)
aliasMap
- a Map from custom zone IDs to canonical representationsnext
- the next processor in the chainZoneId.of(String, Map)
public Object execute(Object value, CsvContext context)
value
- the value to be processedcontext
- the CSV contextSuperCsvCellProcessorException
- if value is null or is not a StringCopyright © 2007–2015 Super CSV. All rights reserved.