Package com.opencsv.bean
Interface ComplexFieldMapEntry<I,K extends 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 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 the
BeanField
that is to be provided for a match.- Since:
- 4.2
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether or not the given key is contained in this entry.Returns the information used to initialize this entry.void
setErrorLocale
(Locale errorLocale) Sets the locale to be used for error messages.
-
Method Details
-
contains
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
-
getBeanField
- Returns:
- The
BeanField
to which this entry maps
-
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
Sets the locale to be used for error messages.- Parameters:
errorLocale
- The locale to be used for error messages
-