org.openmrs.serialization
Interface OpenmrsSerializer


public interface OpenmrsSerializer

Implementations of this interface provide serialization implementations for OpenMRS.


Method Summary
<T> T
deserialize(java.lang.String serializedObject, java.lang.Class<? extends T> clazz)
          Deserialize the given string into a full object
 java.lang.String serialize(java.lang.Object o)
          Turn the current object into an identifying string that can be retrieved later
 

Method Detail

serialize

java.lang.String serialize(java.lang.Object o)
                           throws SerializationException
Turn the current object into an identifying string that can be retrieved later

Parameters:
o - - the object to serialize
Returns:
String representing this object
Throws:
SerializationException

deserialize

<T> T deserialize(java.lang.String serializedObject,
                  java.lang.Class<? extends T> clazz)
              throws SerializationException
Deserialize the given string into a full object

Parameters:
serializedObject - - String to deserialize
clazz - - The class to deserialize the Object into
Returns:
hydrated object of the appropriate type
Throws:
SerializationException

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change