Class ComplexData

  extended by org.openmrs.obs.ComplexData
All Implemented Interfaces:

public class ComplexData
extends java.lang.Object

ComplexObs is a transient Object that extends Obs but is not itself persisted in the database. It has a data Object and a title. Alternatively, it can have a byte array in the Object.

Most handlers should support this data Object being an InputStream, at least prior to saving the object.

On pulling data out, the format is per-handler defined and the page doing the viewing should know how to handle it.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
Constructor Summary
ComplexData(java.lang.String title, java.lang.Object data)
          Default constructor requires title and data.
Method Summary
 java.lang.Object getData()
          Get the data Object.
 java.lang.String getTitle()
          Get the title for this ComplexData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail


public ComplexData(java.lang.String title,
                   java.lang.Object data)
Default constructor requires title and data.

title - Name or brief description of ComplexData.
data - The complex data for an Obs
Method Detail


public java.lang.String getTitle()
Get the title for this ComplexData

the title as a String


public java.lang.Object getData()
Get the data Object. If this was initialized with a byte array, the output may not be reliable. TODO: Should this even try to return the byte array?

the data as an Object


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