public class CtxProductForm extends ProductForm
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
CTX_ID_PATTERN
Regular expression to match CTX product IDs
|
static java.lang.String |
ID
CVS ID
|
id, version
Constructor and Description |
---|
CtxProductForm() |
Modifier and Type | Method and Description |
---|---|
int |
getOrbitNumber()
Get the orbit number from the ID
|
java.lang.String |
getPath()
Get the (HiRISE-like) relative path
|
float |
getTargetLatitude()
Get the target latitude from the ID
|
boolean |
isPds()
True if this is a PDS-style CTX ID
|
boolean |
parse(java.lang.String input)
Parse input to see if it is a CTX observation ID
|
void |
setId(java.lang.String id)
Set the observation ID.
|
java.lang.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.
|
getId, getVersion, setVersion
public static final java.lang.String ID
public static java.util.regex.Pattern CTX_ID_PATTERN
public boolean parse(java.lang.String input)
input
- possible CTX observation IDpublic void setId(java.lang.String id)
ProductForm
setId
in class ProductForm
id
- Observation IDpublic java.lang.String toString()
toString
in class ProductForm
public boolean isPds()
public int getOrbitNumber()
public float getTargetLatitude()
public java.lang.String getPath()
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping map, javax.servlet.http.HttpServletRequest req)
validate
in class ProductForm
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona