T
- The type of the bean being populatedpublic class BeanFieldJoinIntegerIndex<T> extends BeanFieldJoin<T,Integer>
BeanFieldJoin
with a Integer
for an
index.capture, writeFormat
converter, errorLocale, field, fieldAccess, required, type
Constructor and Description |
---|
BeanFieldJoinIntegerIndex(Class<?> type,
Field field,
boolean required,
Locale errorLocale,
CsvConverter converter,
Class<? extends org.apache.commons.collections4.MultiValuedMap> mapType,
String capture,
String format)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
putNewValue(org.apache.commons.collections4.MultiValuedMap<Integer,Object> map,
String index,
Object newValue)
Puts the value given in
newValue into map using
index . |
assignValueToField, indexAndSplitMultivaluedField, isFieldEmptyForWrite
convert, convertToWrite
getErrorLocale, getField, getFieldValue, getType, isRequired, setErrorLocale, setField, setFieldValue, setRequired, setType, write
public BeanFieldJoinIntegerIndex(Class<?> type, Field field, boolean required, Locale errorLocale, CsvConverter converter, Class<? extends org.apache.commons.collections4.MultiValuedMap> mapType, String capture, String format)
type
- The type of the class in which this field is found. This is
the type as instantiated by opencsv, and not necessarily the
type in which the field is declared in the case of
inheritance.field
- The bean field this object representsrequired
- Whether or not a value is always required for this fielderrorLocale
- The locale to use for error messagesconverter
- The converter to be used for performing the data
conversion on reading or writingmapType
- The type of the
MultiValuedMap
that should be
instantiated for the bean field being populatedcapture
- See CsvBindAndJoinByName.capture()
format
- The format string used for packaging values to be written.
If null
or empty, it is ignored.protected Object putNewValue(org.apache.commons.collections4.MultiValuedMap<Integer,Object> map, String index, Object newValue)
BeanFieldJoin
newValue
into map
using
index
.
This allows derived classes to do something special before assigning the
value, such as converting the index to a different type.putNewValue
in class BeanFieldJoin<T,Integer>
map
- The map to which to assign the new value. Never null.index
- The index under which the new value should be placed in the
map. Never null.newValue
- The new value to be put in the mapCopyright © 2005–2023. All rights reserved.