Package org.intermine.web.struts
Class ImportQueriesForm
- java.lang.Object
-
- org.apache.struts.action.ActionForm
-
- org.apache.struts.validator.ValidatorForm
-
- org.intermine.web.struts.ImportXMLForm
-
- org.intermine.web.struts.ImportQueriesForm
-
- All Implemented Interfaces:
java.io.Serializable
public class ImportQueriesForm extends ImportXMLForm
Form bean representing query import form.- Author:
- Thomas Riley, Daniela Butano
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.intermine.web.struts.ImportXMLForm
formFile, xml
-
-
Constructor Summary
Constructors Constructor Description ImportQueriesForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getQueryBuilder()
Get the queryBuilder field.java.util.Map<java.lang.String,PathQuery>
getQueryMap()
Return a Map from query name to Query object.protected void
reset()
Reset the form.void
setQueryBuilder(java.lang.String queryBuilder)
Set the queryBuilder field.org.apache.struts.action.ActionErrors
validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
Call inherited method then check whether xml is valid.-
Methods inherited from class org.intermine.web.struts.ImportXMLForm
getFormFile, getXml, reset, setFormFile, setXml
-
Methods inherited from class org.apache.struts.validator.ValidatorForm
getPage, getResultValueMap, getValidationKey, getValidatorResults, setPage, setValidatorResults
-
-
-
-
Method Detail
-
getQueryMap
public java.util.Map<java.lang.String,PathQuery> getQueryMap() throws java.lang.Exception
Return a Map from query name to Query object.- Returns:
- the Map
- Throws:
java.lang.Exception
- if a problem parsing query XML
-
getQueryBuilder
public java.lang.String getQueryBuilder()
Get the queryBuilder field. If true and there is only one query submitted, the action will redirect to the query builder rather than the saved query history page.- Returns:
- queryBuilder the queryBuilder field
-
setQueryBuilder
public void setQueryBuilder(java.lang.String queryBuilder)
Set the queryBuilder field.- Parameters:
queryBuilder
- the queryBuilder field
-
reset
protected void reset()
Reset the form.- Overrides:
reset
in classImportXMLForm
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
Call inherited method then check whether xml is valid.- Overrides:
validate
in classorg.apache.struts.validator.ValidatorForm
-
-