org.jbeanmapper
Interface PropertyMapper
- All Known Implementing Classes:
- DefaultPropertyMapper
- public interface PropertyMapper
Map a property from one class to another.
- Author:
- Brian Pugh
Method Summary |
void |
mapProperty(java.lang.Object srcObject,
java.lang.String srcProperty,
java.lang.Object targetObject,
java.lang.String targetProperty,
MappingContext context,
BeanConverter converter)
Maps the srcProperty of srcObject to the targetProperty of targetObject . |
mapProperty
public void mapProperty(java.lang.Object srcObject,
java.lang.String srcProperty,
java.lang.Object targetObject,
java.lang.String targetProperty,
MappingContext context,
BeanConverter converter)
throws PropertyMappingException,
BeanMappingException
- Maps the
srcProperty
of srcObject
to the targetProperty
of targetObject
.
- Parameters:
srcObject
- an instance of the source object.srcProperty
- the property to be mapped.targetObject
- an isntance of the target object.targetProperty
- the target object's property that should be mapped.context
- the mapping context.converter
- the converter to use in the mapping.
- Throws:
PropertyMappingException
- if property mapping fails.
BeanMappingException
- if a bean mapping fails.