Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FIELD_NAME_MAPPING_SPLIT_TOKEN |
Constructor and Description |
---|
AbstractFieldMappingAwareDataMapper()
Creates a new
AbstractFieldMappingAwareDataMapper with the DEFAULT_FIELD_NAME_MAPPING_SPLIT_TOKEN . |
AbstractFieldMappingAwareDataMapper(java.lang.String fieldMappingEntrySplitToken)
Creates a new
AbstractFieldMappingAwareDataMapper with the DEFAULT_FIELD_NAME_MAPPING_SPLIT_TOKEN . |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
extractFieldNameMappingFrom(java.util.List<java.lang.String> fieldNameMappingPairs)
Transforms the list of field name mapping pairs to a
Map from a name to a new name. |
java.lang.String |
getFieldMappingEntrySplitToken() |
public static final java.lang.String DEFAULT_FIELD_NAME_MAPPING_SPLIT_TOKEN
public AbstractFieldMappingAwareDataMapper()
AbstractFieldMappingAwareDataMapper
with the DEFAULT_FIELD_NAME_MAPPING_SPLIT_TOKEN
.public AbstractFieldMappingAwareDataMapper(java.lang.String fieldMappingEntrySplitToken)
AbstractFieldMappingAwareDataMapper
with the DEFAULT_FIELD_NAME_MAPPING_SPLIT_TOKEN
.fieldMappingEntrySplitToken
- the fieldMappingEntry must not be null.protected java.util.Map<java.lang.String,java.lang.String> extractFieldNameMappingFrom(java.util.List<java.lang.String> fieldNameMappingPairs)
Map
from a name to a new name.fieldNameMappingPairs
- list of field name mapping pairspublic java.lang.String getFieldMappingEntrySplitToken()