public class SearchForm extends OrbitCycleForm
Modifier and Type | Class and Description |
---|---|
static class |
SearchForm.SearchType
Types of searches available
|
OrbitCycleForm.RangeUnit
by, cenLat, cenLon, maxCycle, maxLat, maxLon, maxLs, maxMy, maxOrbit, minCycle, minLat, minLon, minLs, minMy, minOrbit, range, season, target
ID, maxDate, minDate, plus, TIME_FORMATS, timeFormatters, timeUnits, unit
EXPORT_MAX_ROWS
Constructor and Description |
---|
SearchForm() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the description input
|
java.lang.String |
getInput()
Get the search term
|
java.lang.String |
getObservation()
Get the observation input
|
static java.lang.String |
getPhase(int orbit)
Find an appropriate phase for a given orbit number.
|
SearchForm.SearchType |
getSearchType()
Return the type of search to be performed
|
int |
getSuggestion()
Get the suggestion input
|
void |
setInput(java.lang.String input)
Set the search term
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping map,
javax.servlet.http.HttpServletRequest req)
Validation is used to parse the input, determine what type of search is
being asked for, and set the appropriate inputs in the base class.
|
checkArray, getBy, getCenLat, getCenLon, getMartianSeason, getMaxCycle, getMaxDate, getMaxLat, getMaxLon, getMaxLs, getMaxMy, getMaxOrbit, getMinCycle, getMinDate, getMinLat, getMinLon, getMinLs, getMinMy, getMinOrbit, getNextMaxCycle, getNextMaxOrbit, getNextMinCycle, getNextMinOrbit, getPrevMaxCycle, getPrevMaxOrbit, getPrevMinCycle, getPrevMinOrbit, getRange, getSeason, getSeasons, getTarget, isMartian, setBy, setCenLat, setCenLon, setMaxCycle, setMaxLat, setMaxLon, setMaxLs, setMaxMy, setMaxOrbit, setMinCycle, setMinLat, setMinLon, setMinLs, setMinMy, setMinOrbit, setRange, setSeason, setTarget
getPlus, getTimeRange, getTimeUnit, getTimeUnits, parseDate, setMaxDate, setMinDate, setPlus, setTimeRange, setTimeUnit
getDir, getPage, getSize, getSort, isAscending, reset, setDir, setPage, setSize, setSort
public java.lang.String getObservation()
public int getSuggestion()
public java.lang.String getDescription()
public void setInput(java.lang.String input)
input
- the search termpublic java.lang.String getInput()
public SearchForm.SearchType getSearchType()
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping map, javax.servlet.http.HttpServletRequest req)
validate
in class OrbitCycleForm
public static java.lang.String getPhase(int orbit)
orbit
- The orbit numberCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona