org.openmrs.xml
Class OpenmrsCycleStrategy

java.lang.Object
  extended by org.simpleframework.xml.graph.CycleStrategy
      extended by org.openmrs.xml.OpenmrsCycleStrategy
All Implemented Interfaces:
org.simpleframework.xml.load.Strategy

Deprecated. - Use OpenmrsSerializer from Context.getSerializationService.getDefaultSerializer()

@Deprecated
public class OpenmrsCycleStrategy
extends org.simpleframework.xml.graph.CycleStrategy

This is a specific serialization strategy developed so that the OpenMRS objects that happen to be proxied by Hibernate will be serialized correctly.
Use:

                Serializer serializer = new Persister(new OpenmrsCycleStrategy());
                serializer.write(someObject, outputStream);
 


Constructor Summary
OpenmrsCycleStrategy()
          Deprecated. Overriding the default constructor so we can set our label logic onto the strategy.
OpenmrsCycleStrategy(boolean isShortSerialization)
          Deprecated. Custom constructor to set whether this serialization will be a short one or not.
 
Method Summary
 boolean setRoot(java.lang.Class field, java.lang.Object value, org.simpleframework.xml.stream.NodeMap node, java.util.Map map)
          Deprecated.  
 
Methods inherited from class org.simpleframework.xml.graph.CycleStrategy
getElement, getRoot, setElement, setLabelLogic, setReferenceLogic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenmrsCycleStrategy

public OpenmrsCycleStrategy()
Deprecated. 
Overriding the default constructor so we can set our label logic onto the strategy. This label logic will convert hibernate proxy class names to their equivalent pojo class names


OpenmrsCycleStrategy

public OpenmrsCycleStrategy(boolean isShortSerialization)
Deprecated. 
Custom constructor to set whether this serialization will be a short one or not. The

Parameters:
isShortSerialization -
Method Detail

setRoot

public boolean setRoot(java.lang.Class field,
                       java.lang.Object value,
                       org.simpleframework.xml.stream.NodeMap node,
                       java.util.Map map)
Deprecated. 
Specified by:
setRoot in interface org.simpleframework.xml.load.Strategy
Overrides:
setRoot in class org.simpleframework.xml.graph.CycleStrategy
See Also:
CycleStrategy.setRoot(java.lang.Class, java.lang.Object, org.simpleframework.xml.stream.NodeMap, java.util.Map)

OpenMRS-1.7.x

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