de.xabsl.jxabslx.conversions
Interface DecimalConversion

All Known Implementing Classes:
DecimalToDoubleConversion, DecimalToFloatConversion, DecimalToIntegerConversion, DecimalToLongConversion

public interface DecimalConversion

Converts an object into a XABSL decimal value


Method Summary
 double from(java.lang.Object value)
          Convert an object to a double
 java.lang.Object to(double value)
          Convert a double to an Object
 java.lang.Class<?> type()
           
 

Method Detail

from

double from(java.lang.Object value)
Convert an object to a double

Parameters:
value - Must be of the type returned by type()
Returns:
The converted value

to

java.lang.Object to(double value)
Convert a double to an Object

Parameters:
value - Any double value
Returns:
The converted value. The object must be of the type returned by type()

type

java.lang.Class<?> type()
Returns:
The type that this converter handles.