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

panda.bind.SerializeAdapter Maven / Gradle / Ivy

Go to download

Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.

There is a newer version: 1.8.0
Show newest version
package panda.bind;

public interface SerializeAdapter {
	public static final Object FILTERED = new Object();
	
	/**
	 * convert source
	 * @param src the source value
	 * @return converted value
	 */
	Object adaptSource(T src);

	/**
	 * @param src the owner of the property
	 * @param name the name of the property
	 * @return property name, null if the property is not accepted
	 */
	String adaptPropertyName(T src, String name);

	/**
	 * @param src the owner of the property
	 * @param value the value of the property
	 * @return property value
	 */
	Object adaptPropertyValue(T src, Object value);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy