Uses of Interface
com.opencsv.bean.BeanField
-
Packages that use BeanField 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 -
-
Uses of BeanField in com.opencsv.bean
Classes in com.opencsv.bean that implement BeanField Modifier and Type Class 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 aBeanFieldJoin
with aInteger
for an index.class
BeanFieldJoinStringIndex<T>
Implements aBeanFieldJoin
with aString
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.Fields in com.opencsv.bean declared as BeanField Modifier and Type Field Description protected BeanField<T,K>
AbstractFieldMapEntry. field
TheBeanField
that is the target of this mapping.Fields in com.opencsv.bean with type parameters of type BeanField Modifier and Type Field Description protected java.util.SortedMap<K,BeanField<T,K>>
AbstractFieldMap. simpleMap
A map for all simple, that is one-to-one, mappings represented in thisFieldMap
.Methods in com.opencsv.bean that return BeanField Modifier and Type Method Description protected abstract BeanField<T,K>
AbstractMappingStrategy. findField(int col)
Gets the field for a given column position.protected BeanField<T,java.lang.Integer>
ColumnPositionMappingStrategy. findField(int col)
protected BeanField<T,java.lang.String>
HeaderNameBaseMappingStrategy. findField(int col)
BeanField<T,K>
AbstractFieldMap. get(K key)
BeanField<T,K>
FieldMap. get(K key)
Gets theBeanField
associated with this key.BeanField<T,K>
AbstractFieldMapEntry. getBeanField()
BeanField<T,K>
ComplexFieldMapEntry. getBeanField()
BeanField<T,java.lang.String>
FieldMapByNameEntry. getField()
BeanField<T,java.lang.Integer>
FieldMapByPositionEntry. getField()
protected BeanField<T,K>
AbstractMappingStrategy. instantiateCustomConverter(java.lang.Class<? extends AbstractBeanField<T,K>> converter)
Attempts to instantiate the class of the custom converter specified.BeanField<T,K>
AbstractFieldMap. put(K key, BeanField<T,K> value)
BeanField<T,K>
FieldMap. put(K key, BeanField<T,K> value)
Associates the givenBeanField
with the givenkey
.Methods in com.opencsv.bean that return types with arguments of type BeanField Modifier and Type Method Description java.util.Collection<BeanField<T,K>>
AbstractFieldMap. values()
java.util.Collection<BeanField<T,K>>
FieldMap. values()
Provides all values currently in the map.Methods in com.opencsv.bean with parameters of type BeanField Modifier and Type Method Description BeanField<T,K>
AbstractFieldMap. put(K key, BeanField<T,K> value)
BeanField<T,K>
FieldMap. put(K key, BeanField<T,K> value)
Associates the givenBeanField
with the givenkey
.void
FieldMap. putComplex(I initializer, BeanField<T,K> value)
Adds aBeanField
to this map indexed by the data ininitializer
.void
FieldMapByName. putComplex(java.lang.String key, BeanField<T,java.lang.String> value)
void
FieldMapByPosition. putComplex(java.lang.String rangeDefinition, BeanField<T,java.lang.Integer> field)
Constructors in com.opencsv.bean with parameters of type BeanField Constructor Description AbstractFieldMapEntry(BeanField<T,K> field, java.util.Locale errorLocale)
The only constructor, and it must be called by all derived classes.FieldMapByNameEntry(java.lang.String name, BeanField<T,java.lang.String> field, boolean regexPattern)
Initializes the entry.FieldMapByPositionEntry(int position, BeanField<T,java.lang.Integer> field)
Initializes this entry.PositionToBeanField(java.lang.String rangeDefinition, int maxIndex, BeanField<T,java.lang.Integer> field, java.util.Locale errorLocale)
Initializes this mapping with a list of ranges and the associatedBeanField
.RegexToBeanField(java.lang.String pattern, BeanField<T,java.lang.String> field, java.util.Locale errorLocale)
Initializes this mapping with the regular expression used to map header names and theBeanField
they should be mapped to. -
Uses of BeanField in com.opencsv.bean.customconverter
Classes in com.opencsv.bean.customconverter that implement BeanField Modifier and Type Class Description class
ConvertGermanToBoolean<T,I>
This class converts common German representations of boolean values into a Boolean. -
Uses of BeanField in com.opencsv.bean.validators
Methods in com.opencsv.bean.validators with parameters of type BeanField Modifier and Type Method Description void
MustMatchRegexExpression. validate(java.lang.String value, BeanField field)
void
StringValidator. validate(java.lang.String value, BeanField field)
Performs the validation check on the string and throws an exception if invalid.
-