| Modifier and Type | Method and Description |
|---|---|
void |
addMapping(FieldMapping mapping)
Adds a FieldMapping.
|
Representation |
applyMappings(Representation source,
Representation target,
ValueFactory valueFactory)
Uses the state of the source representation and the configured mappings
to update the state of the target
Representation. |
FieldMapper |
clone()
Creates a clone of this FieldMapper instance with shallow copies of the
FieldMapping instances |
Collection<FieldMapping> |
getMappings()
Getter for the unmodifiable collection of all mappings
|
void |
removeFieldMapping(FieldMapping mapping)
Removes a FieldMapping.
|
void addMapping(FieldMapping mapping)
void removeFieldMapping(FieldMapping mapping)
mapping - the Mapping to removeRepresentation applyMappings(Representation source, Representation target, ValueFactory valueFactory)
Representation. The state of the
source Representation is not modified. Existing values in the
target are not removed nor modified. If the same instance is parsed as
source and target representation, fields created by the mapping process
are NOT used as source fields for further mappings.source - the source for the mapping processtarget - the target for the processed mappings (can be the same as source)valueFactory - The valueFactory used to create values while applying the mappingsRepresentation parsed as target.
TODO: This Method should return a MappingReport, that can be stored with
the EntityMapping. However the MappingActivity functionality is
not yet designed/implemented!Collection<FieldMapping> getMappings()
FieldMapper clone()
FieldMapping instancesCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.