Top Description Fields Constructors Methods
com.opencsv.bean

public abstract Class AbstractFieldMapEntry<I, K extends Comparable<K>, T>

extends Object
implements ComplexFieldMapEntry<I, K extends Comparable<K>, T>
Class Inheritance
All Implemented Interfaces
com.opencsv.bean.ComplexFieldMapEntry
Known Direct Subclasses
com.opencsv.bean.PositionToBeanField, com.opencsv.bean.RegexToBeanField
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, org.apache.commons.lang3.ObjectUtils

Collects common aspects of a ComplexFieldMapEntry.
Author
Andrew Rucker Jones
Since
4.2

Field Summary

Modifier and TypeField and Description
protected Locale
errorLocale

The locale to be used for error messages.

protected final BeanField<T, K>
field

The BeanField that is the target of this mapping.

Constructor Summary

AccessConstructor and Description
protected
AbstractFieldMapEntry(final BeanField<T, K>
The BeanField being mapped to
field
,
final Locale
The locale to be used for error messages
errorLocale
)

The only constructor, and it must be called by all derived classes.

Method Summary

Modifier and TypeMethod and Description
public BeanField<T, K>
public void
setErrorLocale(final Locale errorLocale)

Implements com.opencsv.bean.ComplexFieldMapEntry.setErrorLocale.

Sets the locale to be used for error messages.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorLocaleback to summary
protected Locale errorLocale

The locale to be used for error messages.

fieldback to summary
protected final BeanField<T, K> field

The BeanField that is the target of this mapping.

Constructor Detail

AbstractFieldMapEntryback to summary
protected AbstractFieldMapEntry(final BeanField<T, K> field, final Locale errorLocale)

The only constructor, and it must be called by all derived classes.

Parameters
field:BeanField<T, K>

The BeanField being mapped to

errorLocale:Locale

The locale to be used for error messages

Method Detail

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

Implements com.opencsv.bean.ComplexFieldMapEntry.getBeanField.

Annotations
@Override
setErrorLocaleback to summary
public void setErrorLocale(final Locale errorLocale)

Implements com.opencsv.bean.ComplexFieldMapEntry.setErrorLocale.

Doc from com.opencsv.bean.ComplexFieldMapEntry.setErrorLocale.

Sets the locale to be used for error messages.

Annotations
@Override