gov.nih.nci.caarray.ui.biomaterial
Class SampleDetailForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by gov.nih.nci.caarray.ui.biomaterial.SampleDetailForm
All Implemented Interfaces:
java.io.Serializable

public class SampleDetailForm
extends org.apache.struts.action.ActionForm

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
SampleDetailForm()
           
 
Method Summary
 java.lang.String getBack()
           
 VocabData[] getBiomaterialCharacteristics()
           
 long getBiomaterialId()
           
 CompoundMeasurementData[] getCompoundMData()
           
 java.lang.String getCreationDescription()
           
 java.lang.String getDescription()
           
 long getExpId()
           
 long getFileId()
           
 long getId()
           
 int getIndex()
           
 java.lang.String getIndividualTreatmentId()
           
 boolean getIsEditable()
           
 long getLabelId()
           
 java.lang.String getMageIdentifier()
           
 java.lang.String getMode()
           
 java.util.Collection getParentBiomaterials()
           
 java.lang.String getReason()
           
 java.lang.String getRequestAction()
           
 java.lang.String getSampleName()
           
 long getSampleType()
           
 java.lang.String getSampleTypeName()
           
 java.util.Collection getSampleTypes()
           
 java.util.Collection getSourceBiomaterials()
           
 java.lang.String getTreatmentAction()
           
 java.lang.String getTreatmentAction(int index)
           
 TreatmentData getTreatmentEvent(int index)
          This function allows the passing of the TreatmentEvents from the request to the form.
 long getTreatmentEventId()
           
 java.util.ArrayList getTreatmentEvents()
           
 int getTreatmentNumber()
           
 void setBack(java.lang.String back)
           
 void setBiomaterialCharacteristics(VocabData[] biomaterialCharacteristics)
           
 void setBiomaterialId(long biomaterialId)
           
 void setCompoundMData(CompoundMeasurementData[] compounds)
           
 void setCreationDescription(java.lang.String string)
           
 void setDescription(java.lang.String string)
           
 void setExpId(long expId)
           
 void setFileId(long fileId)
           
 void setId(long l)
           
 void setIndividualTreatmentId(java.lang.String individualTreatmentId)
           
 void setIsEditable(boolean isEditable)
           
 void setLabelId(long labelId)
           
 void setMageIdentifier(java.lang.String mageIdentifier)
           
 void setMode(java.lang.String mode)
           
 void setParentBiomaterials(java.util.Collection collection)
           
 void setReason(java.lang.String reason)
           
 void setRequestAction(java.lang.String requestAction)
           
 void setSampleName(java.lang.String sampleName)
           
 void setSampleType(long sampleType)
           
 void setSampleTypeName(java.lang.String string)
           
 void setSampleTypes(java.util.Collection sampleTypes)
           
 void setSourceBiomaterials(java.util.Collection sourceBiomaterials)
           
 void setTreatmentAction(java.lang.String submitAction)
           
 void setTreatmentEventId(long treatmentEventId)
           
 void setTreatmentEvents(java.util.Collection treatmentEvents)
           
 void setTreatmentNumber(int treatmentNumber)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleDetailForm

public SampleDetailForm()
Method Detail

getIsEditable

public boolean getIsEditable()

setIsEditable

public void setIsEditable(boolean isEditable)

getMageIdentifier

public java.lang.String getMageIdentifier()

setMageIdentifier

public void setMageIdentifier(java.lang.String mageIdentifier)

getBack

public java.lang.String getBack()
Returns:
Returns the back.

setBack

public void setBack(java.lang.String back)
Parameters:
back - The back to set.

getCreationDescription

public java.lang.String getCreationDescription()
Returns:

getDescription

public java.lang.String getDescription()
Returns:

getId

public long getId()
Returns:

getParentBiomaterials

public java.util.Collection getParentBiomaterials()
Returns:

getSampleName

public java.lang.String getSampleName()
Returns:
Returns the sampleName.

getSampleType

public long getSampleType()
Returns:
Returns the sampleType.

getSampleTypeName

public java.lang.String getSampleTypeName()
Returns:

getSampleTypes

public java.util.Collection getSampleTypes()
Returns:
Returns the sampleTypes.

getSourceBiomaterials

public java.util.Collection getSourceBiomaterials()
Returns:
Returns the sourceBiomaterials.

getTreatmentNumber

public int getTreatmentNumber()
Returns:
Returns the treatmentNumber.

setCreationDescription

public void setCreationDescription(java.lang.String string)
Parameters:
string -

setDescription

public void setDescription(java.lang.String string)
Parameters:
string -

setId

public void setId(long l)
Parameters:
l -

setParentBiomaterials

public void setParentBiomaterials(java.util.Collection collection)
Parameters:
collection -

setSampleName

public void setSampleName(java.lang.String sampleName)
Parameters:
sampleName - The sampleName to set.

setSampleType

public void setSampleType(long sampleType)
Parameters:
sampleType - The sampleType to set.

setSampleTypeName

public void setSampleTypeName(java.lang.String string)
Parameters:
string -

setSampleTypes

public void setSampleTypes(java.util.Collection sampleTypes)
Parameters:
sampleTypes - The sampleTypes to set.

setSourceBiomaterials

public void setSourceBiomaterials(java.util.Collection sourceBiomaterials)
Parameters:
sourceBiomaterials - The sourceBiomaterials to set.

setTreatmentNumber

public void setTreatmentNumber(int treatmentNumber)
Parameters:
treatmentNumber - The treatmentNumber to set.

getBiomaterialCharacteristics

public VocabData[] getBiomaterialCharacteristics()
Returns:
Returns the biomaterialCharacteristics.

setBiomaterialCharacteristics

public void setBiomaterialCharacteristics(VocabData[] biomaterialCharacteristics)
Parameters:
biomaterialCharacteristics - The biomaterialCharacteristics to set.

getBiomaterialId

public long getBiomaterialId()
Returns:
Returns the biomaterialId.

setBiomaterialId

public void setBiomaterialId(long biomaterialId)
Parameters:
biomaterialId - The biomaterialId to set.

getTreatmentEvent

public TreatmentData getTreatmentEvent(int index)
This function allows the passing of the TreatmentEvents from the request to the form. Because the populateBean method uses reflection, an indexed getter method for the contents of the collection has to bend the naming conventions a bit and use the name of the collection instead of the object. See the following site for better explanation http://www.laliluna.de/tutorial/struts-dynamic-forms/struts-dynamic-forms-tutorial.html -D Bauer

Parameters:
index - of the desired TreatmentEvent in the Collection
Returns:
specified treatmentEvent

getTreatmentEvents

public java.util.ArrayList getTreatmentEvents()

setTreatmentEvents

public void setTreatmentEvents(java.util.Collection treatmentEvents)

getTreatmentAction

public java.lang.String getTreatmentAction()
Returns:
Returns the submitAction.

setTreatmentAction

public void setTreatmentAction(java.lang.String submitAction)
Parameters:
submitAction - The submitAction to set.

getRequestAction

public java.lang.String getRequestAction()
Returns:
Returns the requestAction.

setRequestAction

public void setRequestAction(java.lang.String requestAction)
Parameters:
requestAction - The requestAction to set.

getTreatmentAction

public java.lang.String getTreatmentAction(int index)

getIndex

public int getIndex()

getCompoundMData

public CompoundMeasurementData[] getCompoundMData()
Returns:

setCompoundMData

public void setCompoundMData(CompoundMeasurementData[] compounds)
Parameters:
datas -

getTreatmentEventId

public long getTreatmentEventId()
Returns:
Returns the treatmentEventId.

setTreatmentEventId

public void setTreatmentEventId(long treatmentEventId)
Parameters:
treatmentEventId - The treatmentEventId to set.

getFileId

public long getFileId()
Returns:
Returns the fileId.

setFileId

public void setFileId(long fileId)
Parameters:
fileId - The fileId to set.

getReason

public java.lang.String getReason()
Returns:
Returns the reason.

setReason

public void setReason(java.lang.String reason)
Parameters:
reason - The reason to set.

getExpId

public long getExpId()
Returns:
Returns the expId.

setExpId

public void setExpId(long expId)
Parameters:
expId - The expId to set.

getLabelId

public long getLabelId()
Returns:
Returns the labelId.

setLabelId

public void setLabelId(long labelId)
Parameters:
labelId - The labelId to set.

getIndividualTreatmentId

public java.lang.String getIndividualTreatmentId()
Returns:
Returns the individualTreatmentId.

setIndividualTreatmentId

public void setIndividualTreatmentId(java.lang.String individualTreatmentId)
Parameters:
individualTreatmentId - The individualTreatmentId to set.

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Overrides:
validate in class org.apache.struts.action.ActionForm

getMode

public java.lang.String getMode()
Returns:
Returns the mode.

setMode

public void setMode(java.lang.String mode)
Parameters:
mode - The mode to set.