net.sf.beanlib.spi
Interface Transformable

All Known Subinterfaces:
BeanTransformerSpi, CustomBeanTransformerSpi
All Known Implementing Classes:
BeanTransformer, ChainedCustomBeanTransformer, Hibernate3BeanTransformer, JodaTimeTransformer, LazyHibernateCustomBeanTransformer

public interface Transformable

Object Transformer.

Author:
Joe D. Velopar

Method Summary
<T> T
transform(Object in, Class<T> toClass, PropertyInfo propertyInfo)
          Returns an object transformed from the input object with the given target class.
 

Method Detail

transform

<T> T transform(Object in,
                Class<T> toClass,
                PropertyInfo propertyInfo)
Returns an object transformed from the input object with the given target class.

Parameters:
in - the input object to be transformed. If propertyInfo is non-null, the input object is a JavaBean property value.
toClass - the target class to be transformed to.
propertyInfo - If null, it means the in object is a root level object. Otherwise, propertyInfo contains information about the input object as a java bean property value to be transformed.
Returns:
the transformed object.