Package com.opencsv.bean
Class AbstractFieldMapEntry<I,K extends java.lang.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 java.lang.Comparable<K>,T> extends java.lang.Object implements ComplexFieldMapEntry<I,K,T>
Collects common aspects of aComplexFieldMapEntry
.- Since:
- 4.2
- Author:
- Andrew Rucker Jones
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFieldMapEntry(BeanField<T,K> field, java.util.Locale errorLocale)
The only constructor, and it must be called by all derived classes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanField<T,K>
getBeanField()
void
setErrorLocale(java.util.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
-
-
-
-
Method Detail
-
getBeanField
public BeanField<T,K> getBeanField()
- Specified by:
getBeanField
in interfaceComplexFieldMapEntry<I,K extends java.lang.Comparable<K>,T>
- Returns:
- The
BeanField
to which this entry maps
-
setErrorLocale
public void setErrorLocale(java.util.Locale errorLocale)
Description copied from interface:ComplexFieldMapEntry
Sets the locale to be used for error messages.- Specified by:
setErrorLocale
in interfaceComplexFieldMapEntry<I,K extends java.lang.Comparable<K>,T>
- Parameters:
errorLocale
- The locale to be used for error messages
-
-