Package | Description |
---|---|
com.opencsv.bean |
A bean binding interface for use with opencsv.
|
com.opencsv.bean.customconverter |
Custom converters that are generally useful are collected here.
|
com.opencsv.bean.validators |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBeanField<T,I>
This base bean takes over the responsibility of converting the supplied
string to the proper type for the destination field and setting the
destination field.
|
class |
BeanFieldJoin<T,I>
This class is used for combining multiple columns of the input, possibly
with multiple identically named columns, into one field.
|
class |
BeanFieldJoinIntegerIndex<T>
Implements a
BeanFieldJoin with a Integer for an
index. |
class |
BeanFieldJoinStringIndex<T>
Implements a
BeanFieldJoin with a String for an
index. |
class |
BeanFieldSingleValue<T,I>
This class concerns itself with handling single-valued bean fields.
|
class |
BeanFieldSplit<T,I>
This class concerns itself with handling collection-valued bean fields.
|
Modifier and Type | Field and Description |
---|---|
protected BeanField<T,K> |
AbstractFieldMapEntry.field
The
BeanField that is the target of this mapping. |
Modifier and Type | Field and Description |
---|---|
protected SortedMap<K,BeanField<T,K>> |
AbstractFieldMap.simpleMap
A map for all simple, that is one-to-one, mappings represented in this
FieldMap . |
Modifier and Type | Method and Description |
---|---|
protected abstract BeanField<T,K> |
AbstractMappingStrategy.findField(int col)
Gets the field for a given column position.
|
protected BeanField<T,String> |
HeaderNameBaseMappingStrategy.findField(int col) |
protected BeanField<T,Integer> |
ColumnPositionMappingStrategy.findField(int col) |
BeanField<T,K> |
FieldMap.get(K key)
Gets the
BeanField associated with this key. |
BeanField<T,K> |
AbstractFieldMap.get(K key) |
BeanField<T,K> |
ComplexFieldMapEntry.getBeanField() |
BeanField<T,K> |
AbstractFieldMapEntry.getBeanField() |
BeanField<T,String> |
FieldMapByNameEntry.getField() |
BeanField<T,Integer> |
FieldMapByPositionEntry.getField() |
protected BeanField<T,K> |
AbstractMappingStrategy.instantiateCustomConverter(Class<? extends AbstractBeanField<T,K>> converter)
Attempts to instantiate the class of the custom converter specified.
|
BeanField<T,K> |
FieldMap.put(K key,
BeanField<T,K> value)
Associates the given
BeanField with the given key . |
BeanField<T,K> |
AbstractFieldMap.put(K key,
BeanField<T,K> value) |
Modifier and Type | Method and Description |
---|---|
Collection<BeanField<T,K>> |
FieldMap.values()
Provides all values currently in the map.
|
Collection<BeanField<T,K>> |
AbstractFieldMap.values() |
Modifier and Type | Method and Description |
---|---|
BeanField<T,K> |
FieldMap.put(K key,
BeanField<T,K> value)
Associates the given
BeanField with the given key . |
BeanField<T,K> |
AbstractFieldMap.put(K key,
BeanField<T,K> value) |
void |
FieldMap.putComplex(I initializer,
BeanField<T,K> value)
Adds a
BeanField to this map indexed by the data in
initializer . |
void |
FieldMapByPosition.putComplex(String rangeDefinition,
BeanField<T,Integer> field) |
void |
FieldMapByName.putComplex(String key,
BeanField<T,String> value) |
Constructor and Description |
---|
AbstractFieldMapEntry(BeanField<T,K> field,
Locale errorLocale)
The only constructor, and it must be called by all derived classes.
|
FieldMapByNameEntry(String name,
BeanField<T,String> field,
boolean regexPattern)
Initializes the entry.
|
FieldMapByPositionEntry(int position,
BeanField<T,Integer> field)
Initializes this entry.
|
PositionToBeanField(String rangeDefinition,
int maxIndex,
BeanField<T,Integer> field,
Locale errorLocale)
Initializes this mapping with a list of ranges and the associated
BeanField . |
RegexToBeanField(String pattern,
BeanField<T,String> field,
Locale errorLocale)
Initializes this mapping with the regular expression used to map header
names and the
BeanField they should be mapped to. |
Modifier and Type | Class and Description |
---|---|
class |
ConverterLanguageToBoolean<T,I>
A base class for any converter to and from booleans when the string
values have been or should be localized to a specific language.
|
class |
ConvertFrenchToBoolean<T,I>
This class converts common French representations of boolean values into a
Boolean . |
class |
ConvertGermanToBoolean<T,I>
This class converts common German representations of boolean values into a
Boolean . |
Modifier and Type | Method and Description |
---|---|
void |
StringValidator.validate(String value,
BeanField field)
Performs the validation check on the string and throws an exception if
invalid.
|
void |
MustMatchRegexExpression.validate(String value,
BeanField field) |
Copyright © 2005–2023. All rights reserved.