org.granite.messaging.amf.io.convert
Interface Reverter

All Known Implementing Classes:
GAEKeyConverter, String2Locale, String2URI

public interface Reverter

Author:
Franck WOLFF

Method Summary
 boolean canRevert(Object value)
          Returns true if this reverter can revert the supplied value.
 Object revert(Object value)
          Converts the supplied object to a well known Java type before AMF3 serialization, for example a JodaTime to a standard Java Date.
 

Method Detail

canRevert

boolean canRevert(Object value)
Returns true if this reverter can revert the supplied value.

Parameters:
value - the value to test for possible reversion.
Returns:
true if this reverter can revert the supplied value.

revert

Object revert(Object value)
Converts the supplied object to a well known Java type before AMF3 serialization, for example a JodaTime to a standard Java Date.

Parameters:
value - the object to be reverted (converted back to a standard Java type)
Returns:
the reverted object.