All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.xbean.converters.PropertyConverter Maven / Gradle / Ivy

The newest version!
package com.googlecode.xbean.converters;

/**
 * Interface for property converter's. Implement this interface to define your
 * custom property conversion in a bean.
 * 
 * For example: You may need to convert Date property in one bean to String
 * property in other bean. In such case, you can create your own converter and
 * implement your logic in the respective overriden methods.
 * 
 * @author asanthan
 * 
 * 
 * 
 * @version $Revision: 1.0 $
 */
public interface PropertyConverter {

	/**
	 * Method to convert the given Object of type S to object of type D.
	 * 
	 * @param pObject
	 *            - source object to convert.
	 * 
	 * 
	 * @return D - return the converted object. * @throws Exception
	 */
	public D convert(S pObject) throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy