org.jbeanmapper
Class DefaultBeanConverter

java.lang.Object
  extended byorg.jbeanmapper.DefaultBeanConverter
All Implemented Interfaces:
BeanConverter

public class DefaultBeanConverter
extends java.lang.Object
implements BeanConverter

Basic converter. Supported loop types include Collections, Maps and Arrays.

Author:
Brian Pugh

Constructor Summary
DefaultBeanConverter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBeanConverter

public DefaultBeanConverter()
Method Detail

convert

public java.lang.Object convert(java.lang.Class type,
                                java.lang.Object value,
                                MappingContext context)
                         throws BeanMappingException,
                                PropertyMappingException
Convert the specified input object into an output object of the specified type.

Specified by:
convert in interface BeanConverter
Parameters:
type - Data type to which this value should be converted
value - The input value to be converted
context - 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.