HiRISE

HiRISE.HiReport.form
Class ProductForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by HiRISE.HiReport.form.ProductForm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CtxProductForm

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

Corresponds to a request for a single observation by ID

See Also:
Serialized Form

Field Summary
protected  String id
          Product ID
static String ID
          CVS ID
protected  int version
          Version number
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
ProductForm()
           
 
Method Summary
 String getId()
          Get the observation ID.
 int getVersion()
          Get the version number
 void setId(String id)
          Set the observation ID.
 void setVersion(int version)
          Set the version number
 String toString()
          Text representation
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping map, javax.servlet.http.HttpServletRequest req)
          Verify that the observation ID is valid.
 
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, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

id

protected String id
Product ID


version

protected int version
Version number

Constructor Detail

ProductForm

public ProductForm()
Method Detail

setId

public void setId(String id)
Set the observation ID.

Parameters:
id - Observation ID

getId

public String getId()
Get the observation ID.

Returns:
observation ID

getVersion

public int getVersion()
Get the version number

Returns:
number

setVersion

public void setVersion(int version)
Set the version number

Parameters:
version - number

toString

public String toString()
Text representation

Overrides:
toString in class Object
Returns:
product#version

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping map,
                                                      javax.servlet.http.HttpServletRequest req)
Verify that the observation ID is valid.

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

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona