T - Type of the bean to be returnedpublic class HeaderColumnNameMappingStrategy<T> extends HeaderNameBaseMappingStrategy<T>
AbstractMappingStrategy.RecursiveTypefieldMap, forceCorrectRecordLength, writeOrdererrorLocale, headerIndex, profile, recursiveTypeTree, type| Constructor and Description |
|---|
HeaderColumnNameMappingStrategy()
Default constructor.
|
HeaderColumnNameMappingStrategy(boolean forceCorrectRecordLength)
Constructor to allow setting options for header name mapping.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<Class<? extends Annotation>> |
getBindingAnnotations()
Returns a set of the annotations that are used for binding in this
mapping strategy.
|
protected void |
loadAnnotatedFieldMap(org.apache.commons.collections4.ListValuedMap<Class<?>,Field> fields)
Creates a map of annotated fields in the bean to be processed.
|
captureHeader, chooseMultivaluedFieldIndexFromHeaderIndex, findField, findHeader, getFieldMap, initializeFieldMap, loadUnadornedFieldMap, setColumnOrderOnWrite, verifyLineLengthcreateBean, determineConverter, filterIgnoredFields, generateHeader, getColumnName, getType, ignoreFields, indexBean, instantiateCustomConverter, isForbiddenClassForRecursion, loadFieldMap, loadRecursiveClasses, partitionFields, populateNewBean, selectAnnotationForProfile, setErrorLocale, setFieldValue, setProfile, setType, transmuteBeanclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAnnotationDrivenpublic HeaderColumnNameMappingStrategy()
HeaderColumnNameMappingStrategyBuilderpublic HeaderColumnNameMappingStrategy(boolean forceCorrectRecordLength)
HeaderColumnNameMappingStrategyBuilder.forceCorrectRecordLength - If set, every record will be shortened
or lengthened to match the number of
headersHeaderColumnNameMappingStrategyBuilderprotected void loadAnnotatedFieldMap(org.apache.commons.collections4.ListValuedMap<Class<?>,Field> fields)
This method is called by AbstractMappingStrategy.loadFieldMap() when at least one
relevant annotation is found on a member variable.
loadAnnotatedFieldMap in class AbstractMappingStrategy<String,String,ComplexFieldMapEntry<String,String,T>,T>fields - A list of fields annotated with a binding annotation
in the bean to be processedprotected Set<Class<? extends Annotation>> getBindingAnnotations()
In this mapping strategy, those are currently:
getBindingAnnotations in class AbstractMappingStrategy<String,String,ComplexFieldMapEntry<String,String,T>,T>CsvBindByName or
CsvBindByPosition that are relevant for binding input fields to
bean members in this mapping strategyCopyright © 2005–2025. All rights reserved.