BeanFields.
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.
| Modifier and Type | Method and Description |
|---|---|
| public String[] | Returns: An array of header names for the output fileOne perfect, shining example of how the bean to be written
should look. The most crucial thing is, for fields that result from
joining multiple fields on reading and thus need to be split on
writing, the bean)org. in
question must have the complete structure of the header to be
generated, even if some values are empty.This method generates a header that can be used for writing beans of the type provided back to a file. |
| public BeanField | |
| public BeanField | |
| public void | putComplex(I
Whatever data the implementation needs to match
multiple keys initializer, BeanField<T, K> The value)BeanField that is to be returned on a later
matchAdds a |
| public void | setErrorLocale(Locale
The locale to be used for error messages errorLocale)Sets the locale to be used for error messages. |
| public Collection |
| generateHeader | back to summary |
|---|---|
| public String[] generateHeader(T bean) throws CsvRequiredFieldEmptyException This method generates a header that can be used for writing beans of the
type provided back to a file.
Whether or not this generated header is used is decided by the
| |
| get | back to summary |
|---|---|
| public BeanField Gets the | |
| put | back to summary |
|---|---|
| public BeanField Associates the given | |
| putComplex | back to summary |
|---|---|
| public void putComplex(I initializer, BeanField<T, K> value) Adds a | |
| setErrorLocale | back to summary |
|---|---|
| public void setErrorLocale(Locale errorLocale) Sets the locale to be used for error messages.
| |
| values | back to summary |
|---|---|
| public Collection Provides all values currently in the map.
| |