Top Description Methods
com.opencsv.bean

public Interface ComplexFieldMapEntry<I, K extends Comparable<K>, T>

Known Direct Implementers
com.opencsv.bean.AbstractFieldMapEntry
Type Parameters
<I>
The initializer type used to build the many-to-one mapping
<K>
The type of the key used for indexing
<T>
The type of the bean being converted
Imports
java.util.Locale

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.
Author
Andrew Rucker Jones
Since
4.2

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

Whether key is represented by this entry
contains
(K
The key to be located
key
)

Determines whether or not the given key is contained in this entry.

public BeanField<T, K>
getBeanField()

Returns: The BeanField to which this entry maps

public I

Returns:

The original information used to initialize this mapping entry
getInitializer
()

Returns the information used to initialize this entry.

public void
setErrorLocale(Locale
The locale to be used for error messages
errorLocale
)

Sets the locale to be used for error messages.

Method Detail

containsback to summary
public boolean contains(K key)

Determines whether or not the given key is contained in this entry.

Parameters
key:K

The key to be located

Returns:boolean

Whether key is represented by this entry

getBeanFieldback to summary
public BeanField<T, K> getBeanField()
Returns:BeanField<T, K>

The BeanField to which this entry maps

getInitializerback to summary
public 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:I

The original information used to initialize this mapping entry

setErrorLocaleback to summary
public void setErrorLocale(Locale errorLocale)

Sets the locale to be used for error messages.

Parameters
errorLocale:Locale

The locale to be used for error messages