xmlgp
Class Treatment

java.lang.Object
  extended by xmlgp.Treatment

public class Treatment
extends java.lang.Object

This class is the data holder for Treatment.
It has setters and getters to the attributes of Treatment.

It also has the annotations which will be used by jsefa to deserialize treatment XML element to treatment object and to serialize treatment object to treatment XML element.

Author:
dharani

Constructor Summary
Treatment()
           
 
Method Summary
 java.lang.String getDescription()
          Returns the description of the treatment.
 int getId()
          Returns the id of the treatment.
 java.util.List<Statistics> getStatistics()
          Returns the list of statistical measures of treatment.
 java.util.List<Trial> getTrials()
          Returns the list of trials of the treatment.
 void setAttributes(int id, java.lang.String description, java.util.List<Statistics> statistics, java.util.List<Trial> trials)
          Sets all the attributes of this class.
 void setDescription(java.lang.String description)
          Sets the description of the treatment.
 void setId(int id)
          Sets the id of the treatment.
 void setStatistics(java.util.List<Statistics> statistics)
          Sets the list of statistical measures of treatment.
 void setTrials(java.util.List<Trial> trials)
          Sets the list of trials of the treatment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Treatment

public Treatment()
Method Detail

setAttributes

public void setAttributes(int id,
                          java.lang.String description,
                          java.util.List<Statistics> statistics,
                          java.util.List<Trial> trials)
Sets all the attributes of this class. This method is just for convenience to set all attributes at once instead of setting one by one. Null is passed if an attribute doesn't need to be set.

Parameters:
id - the id to set
description - the description of the treatment to set
statistics - the list of statistics to set
trials - the list of trials to set

getId

public int getId()
Returns the id of the treatment.

Returns:
the id of the treatment.

setId

public void setId(int id)
Sets the id of the treatment.

Parameters:
id - the id to set

getDescription

public java.lang.String getDescription()
Returns the description of the treatment.

Returns:
the description of the treatment

setDescription

public void setDescription(java.lang.String description)
Sets the description of the treatment.

Parameters:
description - the description of the treatment to set

getStatistics

public java.util.List<Statistics> getStatistics()
Returns the list of statistical measures of treatment.

Returns:
the list of statistical measures of treatment.

setStatistics

public void setStatistics(java.util.List<Statistics> statistics)
Sets the list of statistical measures of treatment.

Parameters:
statistics - the list of statistical measures to set

getTrials

public java.util.List<Trial> getTrials()
Returns the list of trials of the treatment.

Returns:
the list of trials of the treatment

setTrials

public void setTrials(java.util.List<Trial> trials)
Sets the list of trials of the treatment.

Parameters:
trials - the list of trials to set