|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.binding.mapping.DefaultAttributeMapper
public class DefaultAttributeMapper
Generic attributes mapper implementation that allows mappings to be configured programatically.
Constructor Summary | |
---|---|
DefaultAttributeMapper()
|
Method Summary | |
---|---|
DefaultAttributeMapper |
addMapping(AttributeMapper mapping)
Add a mapping to this mapper. |
void |
addMappings(AttributeMapper[] mappings)
Add a set of mappings. |
AttributeMapper[] |
getMappings()
Returns this mapper's list of mappings. |
void |
map(java.lang.Object source,
java.lang.Object target,
MappingContext context)
Map data from a source object to a target object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultAttributeMapper()
Method Detail |
---|
public DefaultAttributeMapper addMapping(AttributeMapper mapping)
mapping
- the mapping to add (as an AttributeMapper)
public void addMappings(AttributeMapper[] mappings)
mappings
- the mappingspublic AttributeMapper[] getMappings()
public void map(java.lang.Object source, java.lang.Object target, MappingContext context)
AttributeMapper
map
in interface AttributeMapper
source
- the sourcetarget
- the targetcontext
- the mapping contextpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |