xmlgp
Class Project

java.lang.Object
  extended by xmlgp.Project

public class Project
extends java.lang.Object

This class is the root data holder for project.
It has setters and getters to all the attributes of Project.

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

Author:
dharani

Constructor Summary
Project()
           
 
Method Summary
 java.lang.String getDate()
          Returns the date of the project.
 java.lang.String getDescription()
          Returns the description of the project.
 java.util.List<Experiment> getExperiments()
          Returns the list of experiments of the project.
 java.lang.String getFund()
          Returns the project fund.
 int getId()
          Returns the id of the project.
 java.lang.String getName()
          Returns the name of the project.
 java.lang.String getOrganization()
          Returns the name of the organization which handles the project.
 java.util.List<Statistics> getStatistics()
          Return the list of statistical measures of the project.
 void setAttributes(int id, java.lang.String name, java.lang.String description, java.lang.String date, java.lang.String organization, java.lang.String fund, java.util.List<Statistics> statistics, java.util.List<Experiment> experiments)
          Sets all the attributes of this class.
 void setDate(java.lang.String date)
          Sets the date of the project.
 void setDescription(java.lang.String description)
          Sets the description of the project.
 void setExperiments(java.util.List<Experiment> experiments)
          Sets the list of experiments of the project.
 void setFund(java.lang.String fund)
          Sets the project fund.
 void setId(int id)
          Sets the id of the project.
 void setName(java.lang.String name)
          Sets the name of the project.
 void setOrganization(java.lang.String organization)
          Sets the name of the organization which handles the project.
 void setStatistics(java.util.List<Statistics> statistics)
          Sets the list of statistical measures of the project.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Project

public Project()
Method Detail

setAttributes

public void setAttributes(int id,
                          java.lang.String name,
                          java.lang.String description,
                          java.lang.String date,
                          java.lang.String organization,
                          java.lang.String fund,
                          java.util.List<Statistics> statistics,
                          java.util.List<Experiment> experiments)
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 project id to set
name - the name of project to set
description - the description of the project to set
date - the date of the project to set
organization - the name of the organization which handles the project to set
fund - the project fund to set
statistics - the project fund to set
experiments - the list of experiments of the project to set

getId

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

Returns:
the project id

setId

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

Parameters:
id - the project id to set

getName

public java.lang.String getName()
Returns the name of the project.

Returns:
the name of the project

setName

public void setName(java.lang.String name)
Sets the name of the project.

Parameters:
name - the name of project to set

getDescription

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

Returns:
the description of the project

setDescription

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

Parameters:
description - the description of the project to set

getDate

public java.lang.String getDate()
Returns the date of the project.

Returns:
the date of the project

setDate

public void setDate(java.lang.String date)
Sets the date of the project.

Parameters:
date - the date of the project to set

getOrganization

public java.lang.String getOrganization()
Returns the name of the organization which handles the project.

Returns:
the name of the organization which handles the project

setOrganization

public void setOrganization(java.lang.String organization)
Sets the name of the organization which handles the project.

Parameters:
organization - the name of the organization which handles the project to set

getFund

public java.lang.String getFund()
Returns the project fund.

Returns:
the project fund

setFund

public void setFund(java.lang.String fund)
Sets the project fund.

Parameters:
fund - the project fund to set

getStatistics

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

Returns:
the statistics of the project

setStatistics

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

Parameters:
statistics - the statistics of the project to set

getExperiments

public java.util.List<Experiment> getExperiments()
Returns the list of experiments of the project.

Returns:
the list of experiments of the project

setExperiments

public void setExperiments(java.util.List<Experiment> experiments)
Sets the list of experiments of the project.

Parameters:
experiments - the list of experiments of the project to set