net.sf.jsefa.csv.mapping
Class CsvSimpleTypeMapping

java.lang.Object
  extended by net.sf.jsefa.common.mapping.TypeMapping<N>
      extended by net.sf.jsefa.common.mapping.SimpleTypeMapping<String>
          extended by net.sf.jsefa.csv.mapping.CsvSimpleTypeMapping

public final class CsvSimpleTypeMapping
extends SimpleTypeMapping<String>

A mapping between a java object type and a simple CSV data type.

Instances of this class are immutable and thread safe.

Author:
Norman Lahme-Huetig
See Also:
TypeMapping

Constructor Summary
CsvSimpleTypeMapping(Class<?> objectType, String dataTypeName, SimpleTypeConverter simpleTypeConverter, QuoteMode quoteMode, String noValueString)
          Constructs a new CsvSimpleTypeMapping from the given arguments.
 
Method Summary
 String getNoValueString()
          Returns the String to use if no value is given.
 QuoteMode getQuoteMode()
          Returns the quote mode.
 
Methods inherited from class net.sf.jsefa.common.mapping.SimpleTypeMapping
getSimpleTypeConverter
 
Methods inherited from class net.sf.jsefa.common.mapping.TypeMapping
getDataTypeName, getObjectType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvSimpleTypeMapping

public CsvSimpleTypeMapping(Class<?> objectType,
                            String dataTypeName,
                            SimpleTypeConverter simpleTypeConverter,
                            QuoteMode quoteMode,
                            String noValueString)
Constructs a new CsvSimpleTypeMapping from the given arguments.

Parameters:
objectType - the object type
dataTypeName - the data type name
simpleTypeConverter - the simple type converter
quoteMode - the quote mode
noValueString - the string to use if no value is given
Method Detail

getQuoteMode

public QuoteMode getQuoteMode()
Returns the quote mode.

Returns:
the quote mode

getNoValueString

public String getNoValueString()
Returns the String to use if no value is given.

Returns:
the String to use if no value is given


Copyright © 2014. All rights reserved.