org.xulux.api.dataprovider
Interface IConverter


public interface IConverter

A converter for data. You can register a converter in the dictionary for certain types.

Version:
$Id: IConverter.java,v 1.1 2005/12/18 12:58:24 mvdb Exp $
Author:
Martin van den Bemt

Method Summary
 java.lang.Object getBeanValue(java.lang.Object object)
          Converts the gui value to a value that can be used in a bean
 java.lang.Object getGuiValue(java.lang.Object object)
          Converts the bean value to a value that can be used in a gui
 java.lang.Class getType()
           
 

Method Detail

getBeanValue

java.lang.Object getBeanValue(java.lang.Object object)
Converts the gui value to a value that can be used in a bean

Parameters:
object - - the String (or other object) to convert
Returns:
The object needed.

getGuiValue

java.lang.Object getGuiValue(java.lang.Object object)
Converts the bean value to a value that can be used in a gui

Parameters:
object - the object to get the gui value from
Returns:
the object needed (a String)

getType

java.lang.Class getType()
Returns:
the class that this converter handles


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.