T - Type of the bean to be manipulatedI - Type of the index into multivalued fieldspublic class ConvertGermanToBoolean<T,I> extends AbstractBeanField<T,I>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FALSCH |
protected static String |
WAHR |
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 Object |
convert(String value)
Converts German text into a Boolean.
|
protected String |
convertToWrite(Object value)
This method takes the current value of the field in question in the bean
passed in and converts it to a string.
|
assignValueToField, getErrorLocale, getField, getFieldValue, getType, indexAndSplitMultivaluedField, isFieldEmptyForWrite, isRequired, setErrorLocale, setField, setFieldValue, setRequired, setType, writeprotected static final String WAHR
protected static final String FALSCH
public ConvertGermanToBoolean()
protected Object convert(String value) throws CsvDataTypeMismatchException
convert in class AbstractBeanField<T,I>value - String that should represent a BooleanCsvDataTypeMismatchException - If anything other than the
explicitly translated pairs is foundprotected String convertToWrite(Object value) throws CsvDataTypeMismatchException
convertToWrite in class AbstractBeanField<T,I>value - The contents of the field currently being processed from the
bean to be written. Can be null if the field is not marked as required.CsvDataTypeMismatchException - If the field is not a boolean
or BooleanAbstractBeanField.write(java.lang.Object, java.lang.Object)Copyright © 2019. All rights reserved.