org.granite.messaging.amf.io.convert.impl
Class String2URI
java.lang.Object
org.granite.messaging.amf.io.convert.Converter
org.granite.messaging.amf.io.convert.impl.String2URI
- All Implemented Interfaces:
- Reverter
public class String2URI
- extends Converter
- implements Reverter
- Author:
- Franck WOLFF
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
String2URI
public String2URI(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.