org.openmrs.obs
Class ComplexData

java.lang.Object
  extended by org.openmrs.obs.ComplexData
All Implemented Interfaces:
java.io.Serializable

public class ComplexData
extends java.lang.Object
implements java.io.Serializable

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

serialVersionUID

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

ComplexData

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

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

getTitle

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

Returns:
the title as a String

getData

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?

Returns:
the data as an Object

OpenMRS-1.7.x

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