org.intermine.web.struts
Class BuildBagForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.intermine.web.struts.BuildBagForm
All Implemented Interfaces:
java.io.Serializable

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

Form bean to represent the inputs needed to create a bag from user input.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
BuildBagForm()
           
 
Method Summary
 java.lang.String getExtraFieldValue()
          Get the value to use when creating an extra constraint on a BagQuery, configured in BagQueryConfig.
 org.apache.struts.upload.FormFile getFormFile()
          Get the FormFile.
 java.lang.String getText()
          Get the text string
 java.lang.String getType()
          Get the bag type
 java.lang.String getWhichInput()
          Get the method the user used to upload the bag.
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          
 void setExtraFieldValue(java.lang.String extraFieldValue)
          Set the extra field value.
 void setFormFile(org.apache.struts.upload.FormFile formFile)
          Set the FormFile.
 void setText(java.lang.String text)
          Set the query string
 void setType(java.lang.String type)
          Set the bag type
 void setWhichInput(java.lang.String whichInput)
          Set the method the user used to upload her bag.
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildBagForm

public BuildBagForm()
Method Detail

getType

public java.lang.String getType()
Get the bag type

Returns:
the bag type string

setType

public void setType(java.lang.String type)
Set the bag type

Parameters:
type - the bag type

setText

public void setText(java.lang.String text)
Set the query string

Parameters:
text - the query string

getText

public java.lang.String getText()
Get the text string

Returns:
the text string

setFormFile

public void setFormFile(org.apache.struts.upload.FormFile formFile)
Set the FormFile.

Parameters:
formFile - the FormFile

getFormFile

public org.apache.struts.upload.FormFile getFormFile()
Get the FormFile.

Returns:
the FormFile.

getExtraFieldValue

public java.lang.String getExtraFieldValue()
Get the value to use when creating an extra constraint on a BagQuery, configured in BagQueryConfig.

Returns:
the extra field value

setExtraFieldValue

public void setExtraFieldValue(java.lang.String extraFieldValue)
Set the extra field value.

Parameters:
extraFieldValue - the extra field value

setWhichInput

public void setWhichInput(java.lang.String whichInput)
Set the method the user used to upload her bag.

Parameters:
whichInput - Which method the user used: paste or file

getWhichInput

public java.lang.String getWhichInput()
Get the method the user used to upload the bag. Will be either 'paste' or 'file'. Paste if they typed in the entries via the form. File if they uploaded a file from their computer.

Returns:
which method the user used to upload her bag: paste or file

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)

Overrides:
reset in class org.apache.struts.action.ActionForm