Package com.opencsv.bean
Class AbstractFieldMapEntry<I,K extends Comparable<K>,T>
java.lang.Object
com.opencsv.bean.AbstractFieldMapEntry<I,K,T>
- Type Parameters:
I
- The initializer type used to build the many-to-one mappingK
- The type of the key used for indexingT
- The type of the bean being converted
- All Implemented Interfaces:
ComplexFieldMapEntry<I,
K, T>
- Direct Known Subclasses:
PositionToBeanField
,RegexToBeanField
public abstract class AbstractFieldMapEntry<I,K extends Comparable<K>,T>
extends Object
implements ComplexFieldMapEntry<I,K,T>
Collects common aspects of a
ComplexFieldMapEntry
.- Since:
- 4.2
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractFieldMapEntry
(BeanField<T, K> field, Locale errorLocale) The only constructor, and it must be called by all derived classes. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setErrorLocale
(Locale errorLocale) Sets the locale to be used for error messages.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.opencsv.bean.ComplexFieldMapEntry
contains, getInitializer
-
Field Details
-
field
TheBeanField
that is the target of this mapping. -
errorLocale
The locale to be used for error messages.
-
-
Constructor Details
-
AbstractFieldMapEntry
The only constructor, and it must be called by all derived classes.- Parameters:
field
- The BeanField being mapped toerrorLocale
- The locale to be used for error messages
-
-
Method Details
-
getBeanField
- Specified by:
getBeanField
in interfaceComplexFieldMapEntry<I,
K extends Comparable<K>, T> - Returns:
- The
BeanField
to which this entry maps
-
setErrorLocale
Description copied from interface:ComplexFieldMapEntry
Sets the locale to be used for error messages.- Specified by:
setErrorLocale
in interfaceComplexFieldMapEntry<I,
K extends Comparable<K>, T> - Parameters:
errorLocale
- The locale to be used for error messages
-