Package com.adaptris.csv
Class BasicPreferenceBuilder
- java.lang.Object
-
- com.adaptris.csv.BasicPreferenceBuilder
-
- All Implemented Interfaces:
PreferenceBuilder
public class BasicPreferenceBuilder extends java.lang.Object implements PreferenceBuilder
Implementation ofPreferenceBuilder
that maps the standard super-csv formats.In the adapter configuration file this class is aliased as csv-basic-preference-builder which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BasicPreferenceBuilder.Style
enum representing the standard supported CSV Formats.
-
Constructor Summary
Constructors Constructor Description BasicPreferenceBuilder()
BasicPreferenceBuilder(BasicPreferenceBuilder.Style style)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.supercsv.prefs.CsvPreference
build()
Create the CSVFormat.BasicPreferenceBuilder.Style
getStyle()
void
setStyle(BasicPreferenceBuilder.Style csvFormat)
-
-
-
Constructor Detail
-
BasicPreferenceBuilder
public BasicPreferenceBuilder()
-
BasicPreferenceBuilder
public BasicPreferenceBuilder(BasicPreferenceBuilder.Style style)
-
-
Method Detail
-
getStyle
public BasicPreferenceBuilder.Style getStyle()
-
setStyle
public void setStyle(BasicPreferenceBuilder.Style csvFormat)
-
build
public org.supercsv.prefs.CsvPreference build()
Description copied from interface:PreferenceBuilder
Create the CSVFormat.- Specified by:
build
in interfacePreferenceBuilder
- Returns:
- the CSV Format.
-
-