org.granite.messaging.amf.io.convert.impl
Class GAEKeyConverter
java.lang.Object
org.granite.messaging.amf.io.convert.Converter
org.granite.messaging.amf.io.convert.impl.GAEKeyConverter
- All Implemented Interfaces:
- Reverter
public class GAEKeyConverter
- extends Converter
- implements Reverter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GAEKeyConverter
public GAEKeyConverter(Converters converters)
internalCanConvert
protected boolean internalCanConvert(Object value,
Type targetType)
- Specified by:
internalCanConvert in class Converter
internalConvert
protected Object internalConvert(Object value,
Type targetType)
- Specified by:
internalConvert in class Converter
canRevert
public boolean canRevert(Object value)
- Description copied from interface:
Reverter
- Returns true if this reverter can revert the supplied value.
- Specified by:
canRevert in interface Reverter
- Parameters:
value - the value to test for possible reversion.
- Returns:
- true if this reverter can revert the supplied value.
revert
public Object revert(Object value)
- Description copied from interface:
Reverter
- Converts the supplied object to a well known Java type before AMF3 serialization, for
example a JodaTime to a standard Java
Date.
- Specified by:
revert in interface Reverter
- Parameters:
value - the object to be reverted (converted back to a standard Java type)
- Returns:
- the reverted object.