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
ConstructorsModifierConstructorDescriptionprotectedAbstractFieldMapEntry(BeanField<T, K> field, Locale errorLocale) The only constructor, and it must be called by all derived classes. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetErrorLocale(Locale errorLocale) Sets the locale to be used for error messages.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComplexFieldMapEntry
contains, getInitializer
-
Field Details
-
field
-
errorLocale
The locale to be used for error messages.
-
-
Constructor Details
-
AbstractFieldMapEntry
-
-
Method Details
-
getBeanField
- Specified by:
getBeanFieldin interfaceComplexFieldMapEntry<I, K extends Comparable<K>, T>- Returns:
- The
BeanFieldto which this entry maps
-
setErrorLocale
Description copied from interface:ComplexFieldMapEntrySets the locale to be used for error messages.- Specified by:
setErrorLocalein interfaceComplexFieldMapEntry<I, K extends Comparable<K>, T>- Parameters:
errorLocale- The locale to be used for error messages
-