T
- Type of the bean to be manipulatedI
- Type of the index into multivalued fieldspublic class ConvertGermanToBoolean<T,I> extends ConverterLanguageToBoolean<T,I>
Boolean
.
This class also demonstrates how to localize booleans for any other language.converter, errorLocale, field, fieldAccess, required, type
Constructor and Description |
---|
ConvertGermanToBoolean()
Silence code style checker by adding a useless constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String[] |
getAllLocalizedFalseValues()
This represents a list of all values accepted as "false".
|
protected String[] |
getAllLocalizedTrueValues()
This represents a list of all values accepted as "true".
|
protected String |
getLocalizedFalse()
This is the string for "false" in the localized language.
|
protected String |
getLocalizedTrue()
This is the string for "true" in the localized language.
|
convert, convertToWrite
assignValueToField, getErrorLocale, getField, getFieldValue, getType, indexAndSplitMultivaluedField, isFieldEmptyForWrite, isRequired, setErrorLocale, setField, setFieldValue, setRequired, setType, write
public ConvertGermanToBoolean()
protected String getLocalizedTrue()
ConverterLanguageToBoolean
getLocalizedTrue
in class ConverterLanguageToBoolean<T,I>
true
in this languageprotected String getLocalizedFalse()
ConverterLanguageToBoolean
getLocalizedFalse
in class ConverterLanguageToBoolean<T,I>
false
in this languageprotected String[] getAllLocalizedTrueValues()
ConverterLanguageToBoolean
getAllLocalizedTrueValues
in class ConverterLanguageToBoolean<T,I>
protected String[] getAllLocalizedFalseValues()
ConverterLanguageToBoolean
getAllLocalizedFalseValues
in class ConverterLanguageToBoolean<T,I>
Copyright © 2005–2023. All rights reserved.