| Access | Constructor and Description |
|---|---|
| public | |
| public | HeaderColumnNameMappingStrategy(boolean
If set, every record will be shortened
or lengthened to match the number of
headers forceCorrectRecordLength)Constructor to allow setting options for header name mapping. |
| Modifier and Type | Method and Description |
|---|---|
| protected Set | getBindingAnnotations()
Overrides com. Returns a set of the annotations that are used for binding in this mapping strategy. |
| protected void | loadAnnotatedFieldMap(ListValuedMap<Class<?>, Field> fields)
Overrides com. Creates a map of annotated fields in the bean to be processed. |
| private void | registerBinding(CsvBindByName
The annotation attached to the bean field annotation, Class<?> The class/type in which the field resides localType, Field The bean field localField)Register a binding between a bean field and a simple converter. |
| private void | registerCustomBinding(CsvCustomBindByName
The annotation attached to the bean field annotation, Class<?> The class/type in which the field resides localType, Field The bean field localField)Register a binding between a bean field and a custom converter. |
| private void | registerJoinBinding(CsvBindAndJoinByName
The annotation attached to the bean field annotation, Class<?> The class/type in which the field resides localType, Field The bean field localField)Register a binding between a bean field and a multi-valued converter that joins values from multiple columns. |
| private void | registerSplitBinding(CsvBindAndSplitByName
The annotation attached to the bean field annotation, Class<?> The class/type in which the field resides localType, Field The bean field localField)Register a binding between a bean field and a collection converter that splits input into multiple values. |
| HeaderColumnNameMappingStrategy | back to summary |
|---|---|
| public HeaderColumnNameMappingStrategy() Default constructor. Considered stable. | |
| HeaderColumnNameMappingStrategy | back to summary |
|---|---|
| public HeaderColumnNameMappingStrategy(boolean forceCorrectRecordLength) Constructor to allow setting options for header name mapping.
Not considered stable. As new options are introduced for the mapping
strategy, they will be introduced here. You are encouraged to use
| |
| getBindingAnnotations | back to summary |
|---|---|
| protected Set Overrides com. Returns a set of the annotations that are used for binding in this mapping strategy. In this mapping strategy, those are currently:
| |
| loadAnnotatedFieldMap | back to summary |
|---|---|
| protected void loadAnnotatedFieldMap(ListValuedMap<Class<?>, Field> fields) Overrides com. Creates a map of annotated fields in the bean to be processed. This method is called by
| |
| registerBinding | back to summary |
|---|---|
| private void registerBinding(CsvBindByName annotation, Class<?> localType, Field localField) Register a binding between a bean field and a simple converter.
| |
| registerCustomBinding | back to summary |
|---|---|
| private void registerCustomBinding(CsvCustomBindByName annotation, Class<?> localType, Field localField) Register a binding between a bean field and a custom converter.
| |
| registerJoinBinding | back to summary |
|---|---|
| private void registerJoinBinding(CsvBindAndJoinByName annotation, Class<?> localType, Field localField) Register a binding between a bean field and a multi-valued converter that joins values from multiple columns.
| |
| registerSplitBinding | back to summary |
|---|---|
| private void registerSplitBinding(CsvBindAndSplitByName annotation, Class<?> localType, Field localField) Register a binding between a bean field and a collection converter that splits input into multiple values.
| |