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

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

public class TreatmentFormTwo
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
TreatmentFormTwo()
           
 
Method Summary
 java.util.Collection getBiomaterials()
           
 long getCompoundID()
           
 java.util.Collection getCompoundMeasurements()
           
 long getCompoundmeasurementUnit()
           
 java.util.Collection getCompoundmeasurementUnits()
           
 long getCompoundmeasurementUnitType()
           
 java.util.Collection getCompoundmeasurementUnitTypes()
           
 java.lang.String getCompoundmeasurementValue()
           
 int getCompoundOrder()
           
 java.util.Collection getCompounds()
           
 java.lang.String getCreationDescription()
           
 java.lang.String getDeleteAction()
           
 int getEventOrder()
           
 int getIndex()
           
 java.util.Collection getMaterialTypes()
           
 long getMeasurementUnit()
          Returns the selected measurement unit
 java.util.Collection getMeasurementUnits()
           
 long getMeasurementUnitType()
           
 java.util.Collection getMeasurementUnitTypes()
           
 java.lang.String getMeasurementValue()
           
 java.lang.String getMode()
           
 java.lang.String getOtherCompoundUnit()
           
 int getOtherCompoundUnitType()
           
 java.lang.String getOtherCompoundUnitTypeName()
           
 java.lang.String getOtherUnit()
           
 int getOtherUnitType()
           
 java.lang.String getOtherUnitTypeName()
           
 ProtocolApplicationData getProtocolApplication()
           
 long getProtocolId()
           
 java.util.Collection getProtocolVisibility()
           
 long getResultingBiomaterialType()
           
 java.lang.String getResultingBiomaterialTypeName()
           
 java.lang.String getResultingDescription()
           
 java.lang.String getResultingName()
           
 long getSourceBiomaterialId()
           
 java.lang.String getSourceBiomaterialName()
           
 java.lang.String getTreatmentAction()
           
 java.lang.String getTreatmentAction(int index)
           
 TreatmentEvent getTreatmentEvent(int index)
           
 java.util.ArrayList getTreatmentEvents()
           
 TreatmentEvent getTreatmentEventss(int index)
          This function allows the passing of the TreatmentEvents from the request to the form.
 long getTreatmentOrder()
           
 long getTreatmentType()
           
 java.lang.String getTreatmentTypeName()
           
 java.util.Collection getTreatmentTypes()
           
 boolean isValid()
           
 void resetTreatmentEvent()
           
 void setBiomaterials(java.util.Collection biomaterials)
           
 void setCompoundID(long l)
           
 void setCompoundMeasurements(java.util.Collection collection)
           
 void setCompoundmeasurementUnit(long l)
           
 void setCompoundmeasurementUnits(java.util.Collection collection)
           
 void setCompoundmeasurementUnitType(long l)
           
 void setCompoundmeasurementUnitTypes(java.util.Collection collection)
           
 void setCompoundmeasurementValue(java.lang.String string)
           
 void setCompoundOrder(int i)
           
 void setCompounds(java.util.Collection collection)
           
 void setCreationDescription(java.lang.String creationDescription)
           
 void setDeleteAction(java.lang.String deleteAction)
           
 void setEventOrder(int eventOrder)
           
 void setMaterialTypes(java.util.Collection materialTypes)
           
 void setMeasurementUnit(long l)
           
 void setMeasurementUnits(java.util.Collection collection)
           
 void setMeasurementUnitType(long l)
           
 void setMeasurementUnitTypes(java.util.Collection collection)
           
 void setMeasurementValue(java.lang.String string)
           
 void setMode(java.lang.String mode)
           
 void setOtherCompoundUnit(java.lang.String otherCompoundUnit)
           
 void setOtherCompoundUnitType(int otherCompoundUnitType)
           
 void setOtherCompoundUnitTypeName(java.lang.String otherCompoundUnitTypeName)
           
 void setOtherUnit(java.lang.String otherUnit)
           
 void setOtherUnitType(int otherUnitType)
           
 void setOtherUnitTypeName(java.lang.String otherUnitTypeName)
           
 void setProtocolApplication(ProtocolApplicationData protocolApplication_)
           
 void setProtocolId(long protocolId)
           
 void setProtocolVisibility(java.util.Collection protocolVisibility)
           
 void setResultingBiomaterialType(long resultingMaterialType)
           
 void setResultingBiomaterialTypeName(java.lang.String resultingBiomaterialName)
           
 void setResultingDescription(java.lang.String resultingDescription)
           
 void setResultingName(java.lang.String resultingName)
           
 void setSourceBiomaterialId(long selectedBiomaterialId)
           
 void setSourceBiomaterialName(java.lang.String selectedBiomaterialName)
           
 void setTreatmentAction(java.lang.String treatmentAction)
           
 void setTreatmentActions(int index, java.lang.String value)
           
 void setTreatmentEvents(java.util.Collection treatments)
           
 void setTreatmentOrder(int l)
           
 void setTreatmentType(long l)
           
 void setTreatmentTypeName(java.lang.String string)
           
 void setTreatmentTypes(java.util.Collection collection)
           
 void setValid(boolean valid)
           
 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

TreatmentFormTwo

public TreatmentFormTwo()
Method Detail

getBiomaterials

public java.util.Collection getBiomaterials()
Returns:
Returns the biomaterials.

getCreationDescription

public java.lang.String getCreationDescription()
Returns:
Returns the creationDescription.

getIndex

public int getIndex()

getMaterialTypes

public java.util.Collection getMaterialTypes()
Returns:
Returns the materialTypes.

getMeasurementUnit

public long getMeasurementUnit()
Returns the selected measurement unit

Returns:

getMeasurementUnits

public java.util.Collection getMeasurementUnits()
Returns:

getMeasurementUnitType

public long getMeasurementUnitType()
Returns:

getMeasurementUnitTypes

public java.util.Collection getMeasurementUnitTypes()
Returns:

getMeasurementValue

public java.lang.String getMeasurementValue()
Returns:

getMode

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

getProtocolApplication

public ProtocolApplicationData getProtocolApplication()
Returns:
Returns the protocolApplication_.

getProtocolVisibility

public java.util.Collection getProtocolVisibility()
Returns:
Returns the protocolVisibility.

getResultingBiomaterialType

public long getResultingBiomaterialType()
Returns:
Returns the resultingBiomaterialType.

getResultingBiomaterialTypeName

public java.lang.String getResultingBiomaterialTypeName()
Returns:
Returns the resultingBiomaterialName.

getResultingDescription

public java.lang.String getResultingDescription()
Returns:
Returns the resultingDescription.

getResultingName

public java.lang.String getResultingName()
Returns:
Returns the resultingName.

getSourceBiomaterialId

public long getSourceBiomaterialId()
Returns:
Returns the selectedBiomaterial.

getSourceBiomaterialName

public java.lang.String getSourceBiomaterialName()
Returns:
Returns the selectedBiomaterialName.

getTreatmentEventss

public TreatmentEvent getTreatmentEventss(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

getTreatmentEvent

public TreatmentEvent getTreatmentEvent(int index)

getTreatmentAction

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

getTreatmentAction

public java.lang.String getTreatmentAction(int index)

getTreatmentEvents

public java.util.ArrayList getTreatmentEvents()
Returns:
Returns the treatmentEvents.

getTreatmentOrder

public long getTreatmentOrder()
Returns:
Returns the treatmentOrder.

getTreatmentType

public long getTreatmentType()
Returns:

getTreatmentTypeName

public java.lang.String getTreatmentTypeName()
Returns:

getTreatmentTypes

public java.util.Collection getTreatmentTypes()
Returns:

resetTreatmentEvent

public void resetTreatmentEvent()

setBiomaterials

public void setBiomaterials(java.util.Collection biomaterials)
Parameters:
biomaterials - The biomaterials to set.

setCreationDescription

public void setCreationDescription(java.lang.String creationDescription)
Parameters:
creationDescription - The creationDescription to set.

setMaterialTypes

public void setMaterialTypes(java.util.Collection materialTypes)
Parameters:
materialTypes - The materialTypes to set.

setMeasurementUnit

public void setMeasurementUnit(long l)
Parameters:
l -

setMeasurementUnits

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

setMeasurementUnitType

public void setMeasurementUnitType(long l)
Parameters:
l -

setMeasurementUnitTypes

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

setMeasurementValue

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

setMode

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

setProtocolApplication

public void setProtocolApplication(ProtocolApplicationData protocolApplication_)
Parameters:
protocolApplication_ - The protocolApplication_ to set.

setProtocolVisibility

public void setProtocolVisibility(java.util.Collection protocolVisibility)
Parameters:
protocolVisibility - The protocolVisibility to set.

setResultingBiomaterialType

public void setResultingBiomaterialType(long resultingMaterialType)
Parameters:
resultingBiomaterialType - The resultingBiomaterialType to set.

setResultingBiomaterialTypeName

public void setResultingBiomaterialTypeName(java.lang.String resultingBiomaterialName)
Parameters:
resultingBiomaterialName - The resultingBiomaterialName to set.

setResultingDescription

public void setResultingDescription(java.lang.String resultingDescription)
Parameters:
resultingDescription - The resultingDescription to set.

setResultingName

public void setResultingName(java.lang.String resultingName)
Parameters:
resultingName - The resultingName to set.

setSourceBiomaterialId

public void setSourceBiomaterialId(long selectedBiomaterialId)
Parameters:
selectedBiomaterial - The selectedBiomaterial to set.

setSourceBiomaterialName

public void setSourceBiomaterialName(java.lang.String selectedBiomaterialName)
Parameters:
selectedBiosourceName -

setTreatmentActions

public void setTreatmentActions(int index,
                                java.lang.String value)

setTreatmentAction

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

setTreatmentEvents

public void setTreatmentEvents(java.util.Collection treatments)
Parameters:
treatmentEvents - The treatmentEvents to set.

setTreatmentOrder

public void setTreatmentOrder(int l)
Parameters:
l -

setTreatmentType

public void setTreatmentType(long l)
Parameters:
l -

setTreatmentTypeName

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

setTreatmentTypes

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

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

getProtocolId

public long getProtocolId()
Returns:
Returns the protocolId.

setProtocolId

public void setProtocolId(long protocolId)
Parameters:
protocolId - The protocolId to set.

isValid

public boolean isValid()
Returns:
Returns the valid.

setValid

public void setValid(boolean valid)
Parameters:
valid - The valid to set.

getCompoundmeasurementUnit

public long getCompoundmeasurementUnit()
Returns:

setCompoundmeasurementUnit

public void setCompoundmeasurementUnit(long l)
Parameters:
l -

getCompoundmeasurementUnitType

public long getCompoundmeasurementUnitType()
Returns:

setCompoundmeasurementUnitType

public void setCompoundmeasurementUnitType(long l)
Parameters:
l -

getCompoundmeasurementValue

public java.lang.String getCompoundmeasurementValue()
Returns:

setCompoundmeasurementValue

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

getCompoundmeasurementUnits

public java.util.Collection getCompoundmeasurementUnits()
Returns:

setCompoundmeasurementUnits

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

getCompoundmeasurementUnitTypes

public java.util.Collection getCompoundmeasurementUnitTypes()
Returns:

setCompoundmeasurementUnitTypes

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

getCompoundID

public long getCompoundID()
Returns:

setCompoundID

public void setCompoundID(long l)
Parameters:
l -

getCompounds

public java.util.Collection getCompounds()
Returns:

setCompounds

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

getCompoundMeasurements

public java.util.Collection getCompoundMeasurements()
Returns:

setCompoundMeasurements

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

getCompoundOrder

public int getCompoundOrder()
Returns:

setCompoundOrder

public void setCompoundOrder(int i)
Parameters:
i -

getEventOrder

public int getEventOrder()
Returns:
Returns the eventOrder.

setEventOrder

public void setEventOrder(int eventOrder)
Parameters:
eventOrder - The eventOrder to set.

getDeleteAction

public java.lang.String getDeleteAction()
Returns:
Returns the deleteAction.

setDeleteAction

public void setDeleteAction(java.lang.String deleteAction)
Parameters:
deleteAction - The deleteAction to set.

getOtherCompoundUnitType

public int getOtherCompoundUnitType()
Returns:
Returns the otherCompoundUnitType.

setOtherCompoundUnitType

public void setOtherCompoundUnitType(int otherCompoundUnitType)
Parameters:
otherCompoundUnitType - The otherCompoundUnitType to set.

getOtherUnitType

public int getOtherUnitType()
Returns:
Returns the otherMeasureUnitType.

setOtherUnitType

public void setOtherUnitType(int otherUnitType)
Parameters:
otherUnitType - The otherUnitType to set.

getOtherCompoundUnit

public java.lang.String getOtherCompoundUnit()
Returns:
Returns the otherCompoundUnit.

setOtherCompoundUnit

public void setOtherCompoundUnit(java.lang.String otherCompoundUnit)
Parameters:
otherCompoundUnit - The otherCompoundUnit to set.

getOtherCompoundUnitTypeName

public java.lang.String getOtherCompoundUnitTypeName()
Returns:
Returns the otherCompoundUnitTypeName.

setOtherCompoundUnitTypeName

public void setOtherCompoundUnitTypeName(java.lang.String otherCompoundUnitTypeName)
Parameters:
otherCompoundUnitTypeName - The otherCompoundUnitTypeName to set.

getOtherUnit

public java.lang.String getOtherUnit()
Returns:
Returns the otherUnit.

setOtherUnit

public void setOtherUnit(java.lang.String otherUnit)
Parameters:
otherUnit - The otherUnit to set.

getOtherUnitTypeName

public java.lang.String getOtherUnitTypeName()
Returns:
Returns the otherUnitTypeName.

setOtherUnitTypeName

public void setOtherUnitTypeName(java.lang.String otherUnitTypeName)
Parameters:
otherUnitTypeName - The otherUnitTypeName to set.