Package org.intermine.web.struts
Class BuildBagForm
- java.lang.Object
-
- org.apache.struts.action.ActionForm
-
- 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.- Author:
- Kim Rutherford
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuildBagForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getCaseSensitive()
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 stringjava.lang.String
getType()
Get the bag typejava.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
setCaseSensitive(boolean caseSensitive)
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 stringvoid
setType(java.lang.String type)
Set the bag typevoid
setWhichInput(java.lang.String whichInput)
Set the method the user used to upload her bag.
-
-
-
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
-
getCaseSensitive
public boolean getCaseSensitive()
- Returns:
- if true, hits have to match on case too
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
- Parameters:
caseSensitive
- hits have to match on case too
-
reset
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
- Overrides:
reset
in classorg.apache.struts.action.ActionForm
-
-