| Modifier and Type | Field and Description |
|---|---|
| private Comparator | writeOrder
Holds a |
| Access | Constructor and Description |
|---|---|
| public | FieldMapByName(final Locale
The locale to be used for error messages errorLocale)Initializes this |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: A list of name + field for all the required headers that were not foundAn array of all headers present from the input headersPresent)Returns a list of required headers that were not present in the input. |
| public String[] | generateHeader(final T bean)
Implements com. This method generates a header that can be used for writing beans of the type provided back to a file. |
| public void | putComplex(final String
A regular expression matching header names key, final BeanField<T, String> value)Implements com. Adds a |
| public void | setColumnOrderOnWrite(Comparator<String>
The writeOrder)java. to use. May be
null, in which case the natural ordering is used.Sets the |
| writeOrder | back to summary |
|---|---|
| private Comparator<String> writeOrder Holds a | |
| FieldMapByName | back to summary |
|---|---|
| public FieldMapByName(final Locale errorLocale) Initializes this
| |
| determineMissingRequiredHeaders | back to summary |
|---|---|
| public List Returns a list of required headers that were not present in the input.
| |
| generateHeader | back to summary |
|---|---|
| public String[] generateHeader(final T bean) throws CsvRequiredFieldEmptyException Implements com. This method generates a header that can be used for writing beans of the type provided back to a file. The ordering of the headers is determined by the
This implementation will not write headers discovered in multi-valued bean fields if the headers would not be matched by the bean field on reading. There are two reasons for this:
| |
| putComplex | back to summary |
|---|---|
| public void putComplex(final String key, final BeanField<T, String> value) Implements com. Doc from com. Adds a | |
| setColumnOrderOnWrite | back to summary |
|---|---|
| public void setColumnOrderOnWrite(Comparator<String> writeOrder) Sets the
| |