leon.info.infointerface
Interface LyConverterInterface
public interface LyConverterInterface
Interface implemented by classes which convert field value.
Field Summary |
static java.lang.String |
__VERSION
|
__VERSION
static final java.lang.String __VERSION
- See Also:
- Constant Field Values
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 convertvalue
- the value to convertdestination
- 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 convertvalue
- the value to convertsource
- the source unit of the parameter value
- Returns:
- null if the conversion failed, the converted value otherwise.
Website: W4 S.A., contact us: support@w4global.com