T
- Type of the bean to be manipulatedrequired
parameter to the appropriate annotation
along with ConvertGermanToBoolean
.@Deprecated public class ConvertGermanToBooleanRequired<T> extends ConvertGermanToBoolean<T>
ConvertGermanToBoolean
,
except that it throws CsvRequiredFieldEmptyException
if the input is empty.FALSCH, WAHR
field, required
Constructor and Description |
---|
ConvertGermanToBooleanRequired()
Deprecated.
Silence code style checker by adding a useless constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
convert(String value)
Deprecated.
Converts German text into a Boolean.
|
protected String |
convertToWrite(Object value)
Deprecated.
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
public ConvertGermanToBooleanRequired()
protected Object convert(String value) throws CsvDataTypeMismatchException, CsvRequiredFieldEmptyException
ConvertGermanToBoolean
convert
in class ConvertGermanToBoolean<T>
value
- String that should represent a BooleanCsvRequiredFieldEmptyException
- If the input is emptyCsvDataTypeMismatchException
- If anything other than the
explicitly translated pairs is foundprotected String convertToWrite(Object value) throws CsvDataTypeMismatchException, CsvRequiredFieldEmptyException
ConvertGermanToBoolean
convertToWrite
in class ConvertGermanToBoolean<T>
value
- The contents of the field currently being processed from the
bean to be written. Can be null.CsvRequiredFieldEmptyException
- If value is null, because this
converter requires a valueCsvDataTypeMismatchException
- If the field is not a boolean
or Boolean
AbstractBeanField.write(java.lang.Object)
Copyright © 2017. All rights reserved.