| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Comparator | writeOrder
Holds a |
| Access | Constructor and Description |
|---|---|
| public | FieldMapByPosition(final Locale
The locale to be used for error messages errorLocale)Initializes this |
| Modifier and Type | Method and Description |
|---|---|
| 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 Iterator | |
| public void | putComplex(final String
A string describing the column positions to be
matched. rangeDefinition, final BeanField<T, Integer> field)Implements com. Adds a |
| public void | setColumnOrderOnWrite(Comparator<Integer>
The writeOrder)java. to use. May be
null, in which case the natural ordering is used.Sets the |
| public void | setMaxIndex(int
The maximum index in the data being imported maxIndex)Sets the maximum index for all ranges specified in the entire field map. |
| maxIndex | back to summary |
|---|---|
| private int maxIndex | |
| writeOrder | back to summary |
|---|---|
| private Comparator<Integer> writeOrder Holds a | |
| FieldMapByPosition | back to summary |
|---|---|
| public FieldMapByPosition(final Locale errorLocale) Initializes this
| |
| 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 can be determined with the
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| putComplex | back to summary |
|---|---|
| public void putComplex(final String rangeDefinition, final BeanField<T, Integer> field) Implements com. Doc from com. Adds a
| |
| setColumnOrderOnWrite | back to summary |
|---|---|
| public void setColumnOrderOnWrite(Comparator<Integer> writeOrder) Sets the
| |
| setMaxIndex | back to summary |
|---|---|
| public void setMaxIndex(int maxIndex) Sets the maximum index for all ranges specified in the entire field map.
No ranges or mappings are ever removed so as to preserve information
about required fields, but upper boundries are shortened as much as
possible. If ranges or individual column positions were specified that
lie wholly above
| |