de.xabsl.jxabslx.conversions
Interface EnumeratedConversion

All Known Implementing Classes:
EnumeratedToEnumConversion

public interface EnumeratedConversion

Converts an object into a XABSL decimal value


Method Summary
 java.lang.Object from(java.lang.Object value)
          Convert an object to an enumerated value
 java.lang.String getEnumerationName(java.lang.Class<?> type)
          Returns the enumeration's name from a certain type.
 java.lang.Object to(java.lang.Object value)
          Convert an enumerated value to an Object
 java.lang.Class<?> type()
           
 

Method Detail

from

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

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

to

java.lang.Object to(java.lang.Object value)
Convert an enumerated value to an Object

Parameters:
value - Any enumerated 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.

getEnumerationName

java.lang.String getEnumerationName(java.lang.Class<?> type)
Returns the enumeration's name from a certain type. If this is not possible, the enumeration must be registered manually.

Parameters:
type -
Returns: