LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.infointerface
Interface LyConverterInterface


public interface LyConverterInterface

Interface implemented by classes which convert field value.


Field Summary
static java.lang.String __VERSION
           
 
Method Summary
 java.lang.Object convertFromFieldUnit(LyFieldInfo fieldInfo, java.lang.Object value, LyUnit source)
          Method to convert a value from a given unit to the field unit.
 java.lang.Object convertToFieldUnit(LyFieldInfo fieldInfo, java.lang.Object value, LyUnit destination)
          Method to convert a value from the field unit to the given one.
 

Field Detail

__VERSION

static final java.lang.String __VERSION
See Also:
Constant Field Values
Method Detail

convertToFieldUnit

java.lang.Object convertToFieldUnit(LyFieldInfo fieldInfo,
                                    java.lang.Object value,
                                    LyUnit destination)
Method to convert a value from the field unit to the given one.

Parameters:
fieldInfo - the fieldInfo to convert
value - the value to convert
destination - the destination unit of the converted value
Returns:
null if the conversion failed, the converted value otherwise.

convertFromFieldUnit

java.lang.Object convertFromFieldUnit(LyFieldInfo fieldInfo,
                                      java.lang.Object value,
                                      LyUnit source)
Method to convert a value from a given unit to the field unit.

Parameters:
fieldInfo - the fieldInfo to convert
value - the value to convert
source - the source unit of the parameter value
Returns:
null if the conversion failed, the converted value otherwise.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com