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

net.ulrice.databinding.converter.IFValueConverter Maven / Gradle / Ivy

The newest version!
package net.ulrice.databinding.converter;

import net.ulrice.databinding.bufferedbinding.IFAttributeInfo;


/**
 * converts a value for presentation
 * 
 * @author arno
 */
public interface IFValueConverter  {
    /**
     * These two get...Type methods may assume to be called only for types they can actually handle
     */
    Class getViewType(Class modelType);
    Class getModelType(Class viewType);
    
    boolean canHandle(Class modelType, Class viewType);
    
    M viewToModel (V o, IFAttributeInfo attributeInfo);
    V modelToView (M o, IFAttributeInfo attributeInfo);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy