Package com.opencsv.bean
Interface ComplexFieldMapEntry<I,K extends java.lang.Comparable<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 Known Implementing Classes:
AbstractFieldMapEntry
,PositionToBeanField
,RegexToBeanField
public interface ComplexFieldMapEntry<I,K extends java.lang.Comparable<K>,T>
Defines the basic functionality necessary for using a many-to-one mapping between columns of a CSV file and bean fields. Such a mapping requires a method of matching multiple fields. This method will require data to initialize itself. Such a mapping also requires a key to index theBeanField
that is to be provided for a match.- Since:
- 4.2
- Author:
- Andrew Rucker Jones
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(K key)
Determines whether or not the given key is contained in this entry.BeanField<T,K>
getBeanField()
I
getInitializer()
Returns the information used to initialize this entry.void
setErrorLocale(java.util.Locale errorLocale)
Sets the locale to be used for error messages.
-
-
-
Method Detail
-
contains
boolean contains(K key)
Determines whether or not the given key is contained in this entry.- Parameters:
key
- The key to be located- Returns:
- Whether
key
is represented by this entry
-
getInitializer
I getInitializer()
Returns the information used to initialize this entry. This information is not guaranteed to be exactly the same as the original value, but is functionally equivalent.- Returns:
- The original information used to initialize this mapping entry
-
setErrorLocale
void setErrorLocale(java.util.Locale errorLocale)
Sets the locale to be used for error messages.- Parameters:
errorLocale
- The locale to be used for error messages
-
-