T
- Type of the bean to be manipulatedpublic class ConvertGermanToBoolean<T> extends AbstractBeanField<T>
Modifier and Type | Field and Description |
---|---|
protected static String |
FALSCH |
protected static String |
WAHR |
field, required
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.
|
getField, isRequired, setField, setFieldValue, setRequired, write
protected static final String WAHR
protected static final String FALSCH
public ConvertGermanToBoolean()
protected Object convert(String value) throws CsvDataTypeMismatchException, CsvRequiredFieldEmptyException
convert
in class AbstractBeanField<T>
value
- String that should represent a BooleanCsvDataTypeMismatchException
- If anything other than the
explicitly translated pairs is foundCsvRequiredFieldEmptyException
- Is not thrown by this
implementation. See ConvertGermanToBooleanRequired
.protected String convertToWrite(Object value) throws CsvDataTypeMismatchException, CsvRequiredFieldEmptyException
convertToWrite
in class AbstractBeanField<T>
value
- The contents of the field currently being processed from the
bean to be written. Can be null.CsvDataTypeMismatchException
- If the field is not a boolean
or Boolean
CsvRequiredFieldEmptyException
- Not thrown by this implementationAbstractBeanField.write(java.lang.Object)
Copyright © 2017. All rights reserved.