Top Description Fields Constructors Methods
com.opencsv.bean.customconverter

public Class ConvertGermanToBoolean<T, I>

extends ConverterLanguageToBoolean<T, I>
Class Inheritance
Type Parameters
<T>
Type of the bean to be manipulated
<I>
Type of the index into multivalued fields

This class converts common German representations of boolean values into a Boolean. This class also demonstrates how to localize booleans for any other language.
Author
Andrew Rucker Jones
Since
3.8

Field Summary

Modifier and TypeField and Description
private static final String
private static final String[]
private static final String[]
private static final String

Constructor Summary

AccessConstructor and Description
public
ConvertGermanToBoolean()

Silence code style checker by adding a useless constructor.

Method Summary

Modifier and TypeMethod and Description
protected String[]
getAllLocalizedFalseValues()

Implements abstract com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getAllLocalizedFalseValues.

This represents a list of all values accepted as "false".

protected String[]
getAllLocalizedTrueValues()

Implements abstract com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getAllLocalizedTrueValues.

This represents a list of all values accepted as "true".

protected String
getLocalizedFalse()

Implements abstract com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getLocalizedFalse.

This is the string for "false" in the localized language.

protected String
getLocalizedTrue()

Implements abstract com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getLocalizedTrue.

This is the string for "true" in the localized language.

Inherited from com.opencsv.bean.customconverter.ConverterLanguageToBoolean:
convertconvertToWrite

Field Detail

FALSCHback to summary
private static final String FALSCH
FALSE_STRINGSback to summary
private static final String[] FALSE_STRINGS
TRUE_STRINGSback to summary
private static final String[] TRUE_STRINGS
WAHRback to summary
private static final String WAHR

Constructor Detail

ConvertGermanToBooleanback to summary
public ConvertGermanToBoolean()

Silence code style checker by adding a useless constructor.

Method Detail

getAllLocalizedFalseValuesback to summary
protected String[] getAllLocalizedFalseValues()

Implements abstract com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getAllLocalizedFalseValues.

Doc from com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getAllLocalizedFalseValues.

This represents a list of all values accepted as "false". Any language will have more than one way to say "false", such as "no", "n", or "0". This array should list all possibilities. Comparison is done in a case-insensitive fashion.

Annotations
@Override
getAllLocalizedTrueValuesback to summary
protected String[] getAllLocalizedTrueValues()

Implements abstract com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getAllLocalizedTrueValues.

Doc from com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getAllLocalizedTrueValues.

This represents a list of all values accepted as "true". Any language will have more than one way to say "true", such as "yes", "y", or "1". This array should list all possibilities. Comparison is done in a case-insensitive fashion.

Annotations
@Override
getLocalizedFalseback to summary
protected String getLocalizedFalse()

Implements abstract com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getLocalizedFalse.

Doc from com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getLocalizedFalse.

This is the string for "false" in the localized language. This value will be used on converting from a boolean to a string.

Annotations
@Override
getLocalizedTrueback to summary
protected String getLocalizedTrue()

Implements abstract com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getLocalizedTrue.

Doc from com.opencsv.bean.customconverter.ConverterLanguageToBoolean.getLocalizedTrue.

This is the string for "true" in the localized language. This value will be used on converting from a boolean to a string.

Annotations
@Override