Version: 1.1.1

org.biomoby.service.dashboard.data
Class DataContainer

java.lang.Object
  extended by org.biomoby.service.dashboard.data.DataContainer

public class DataContainer
extends Object

A container for input and output service data. It is mainly used to carry data between the SimpleClientPanel and its executor ServiceCallerModel, and also to carry data to the individual result renderers (class ResultsPanel).

The primary data are set either in constructor, or by setData(java.lang.Object) or by setDataFromFile(java.io.File) (and get back by getData()).

Version:
$Id: DataContainer.java,v 1.3 2006/02/20 05:51:10 senger Exp $
Author:
Martin Senger

Constructor Summary
DataContainer()
          An empty constructor.
DataContainer(Object data)
          A usual constructor, filling his container with the given data.
DataContainer(Object data, Object metadata)
          A usual constructor, filling his container with the given data.
 
Method Summary
 Object getData()
          Get data from this container.
 Object getMetadata()
          Get metadata from this container.
 void setData(Object data)
          Fill this container with data.
 void setDataFromFile(File file)
          Fill this container by data from the given file.
 void setMetadata(Object metadata)
          Fill this container with metadata.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataContainer

public DataContainer()
An empty constructor.


DataContainer

public DataContainer(Object data)
A usual constructor, filling his container with the given data.


DataContainer

public DataContainer(Object data,
                     Object metadata)
A usual constructor, filling his container with the given data.

Method Detail

setData

public void setData(Object data)
Fill this container with data.


setMetadata

public void setMetadata(Object metadata)
Fill this container with metadata.


getData

public Object getData()
Get data from this container.


getMetadata

public Object getMetadata()
Get metadata from this container.


setDataFromFile

public void setDataFromFile(File file)
                     throws MobyException
Fill this container by data from the given file. Be aware that this may not work for all kind of data.

Throws:
MobyException

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010