org.jbeanmapper
Interface BeanConverter
- All Known Implementing Classes:
- DefaultBeanConverter
- public interface BeanConverter
Data type converter to manage conversion of objects from one type to another.
- Author:
- Brian Pugh
Method Summary |
java.lang.Object |
convert(java.lang.Class type,
java.lang.Object value,
MappingContext context)
Convert the specified input object into an output object of the specified type. |
convert
public java.lang.Object convert(java.lang.Class type,
java.lang.Object value,
MappingContext context)
throws PropertyMappingException,
BeanMappingException
- Convert the specified input object into an output object of the specified type.
- Parameters:
type
- Data type to which this value should be convertedvalue
- The input value to be convertedcontext
- the context for this mapping.
- Returns:
- an instance of
type
converted from value
.
- Throws:
PropertyMappingException
- if property mapping fails.
BeanMappingException
- if a bean mapping fails.