public enum PtfField extends java.lang.Enum<PtfField>
Each element of the enumeration includes a field
number
and a set of aliases
for the field name. Use
the of(String)
and of(int)
methods to get an element of
this enumeration from a piece of text or a field number.
Enum Constant and Description |
---|
ANCILLARY_DATA
The ancillary data field.
|
COMMENT
The comment field.
|
COMPRESSION
The compression field.
|
COORDINATED_TRACK_HISTORY
The coordinated track history field.
|
DOWNLINK_PRIORITY
The downlink priority field.
|
ELEVATION
The observation center elevation field.
|
INSTRUMENT_SET
The instrument set field.
|
INSTRUMENT_SPARE_FIELD_1
The instrument spare 1 field.
|
INSTRUMENT_SPARE_FIELD_2
The instrument spare 2 field.
|
INSTRUMENT_SPARE_FIELD_3
The instrument spare 3 field.
|
INSTRUMENT_SPARE_FIELD_4
The instrument spare 4 field.
|
LATITUDE
The observation center latitude field.
|
LINE_NUMBER
The line number field.
|
LONGITUDE
The observation center longitude field.
|
LSUBS
The solar longitude (Ls) field.
|
OBSERVATION_DURATION
The observation duration field.
|
OBSERVATION_MODE
The observation mode field.
|
OBSERVATION_TYPE
The observation type field.
|
ORBIT_ALTERNATIVES
The orbit alternatives field.
|
ORBIT_NUMBER
The orbit number field.
|
ORBITAL_DATA_TABLE
The orbital data table field.
|
PARAMETERS_TABLE
The parameters table field.
|
PIXEL_SCALE
The pixel scale field.
|
PREDICT_TIME
The observation center predict time field.
|
PRODUCT_ID
The product ID field.
|
RAW_DATA_VOLUME
The raw data volume field.
|
REQUEST_CATEGORY
The request category field.
|
REQUEST_PRIORITY
The request priority field.
|
ROLL_ANGLE
The roll angle field.
|
SEQUENCE_FILENAME
The sequence filename field.
|
SETUP_DURATION
The setup duration field.
|
TEAM_DATABASE_ID
The team database ID field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAliases()
Gets the enumeration constant's list of aliases.
|
int |
getFieldNumber()
Gets the enumeration constant's field number.
|
static boolean |
isValidFieldNumber(int value)
Tests whether the input value is a valid PTF field number.
|
static void |
main(java.lang.String... args)
Invokes a trivial example application to demonstrate the enum constant
parsing.
|
static PtfField |
of(int fieldNumber)
Returns the enum constant of this type with the specified filed number.
|
static PtfField |
of(java.lang.String text)
Returns the enum constant of this type with the specified name, field
number, or alias.
|
static PtfField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PtfField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PtfField LINE_NUMBER
public static final PtfField INSTRUMENT_SET
public static final PtfField PREDICT_TIME
public static final PtfField LATITUDE
public static final PtfField LONGITUDE
public static final PtfField ELEVATION
public static final PtfField OBSERVATION_TYPE
public static final PtfField ORBIT_NUMBER
public static final PtfField ORBIT_ALTERNATIVES
public static final PtfField OBSERVATION_DURATION
public static final PtfField SETUP_DURATION
public static final PtfField ORBITAL_DATA_TABLE
public static final PtfField PARAMETERS_TABLE
public static final PtfField SEQUENCE_FILENAME
public static final PtfField DOWNLINK_PRIORITY
public static final PtfField PRODUCT_ID
public static final PtfField INSTRUMENT_SPARE_FIELD_1
public static final PtfField INSTRUMENT_SPARE_FIELD_2
public static final PtfField INSTRUMENT_SPARE_FIELD_3
public static final PtfField INSTRUMENT_SPARE_FIELD_4
public static final PtfField COMMENT
public static final PtfField REQUEST_PRIORITY
public static final PtfField COORDINATED_TRACK_HISTORY
public static final PtfField RAW_DATA_VOLUME
public static final PtfField TEAM_DATABASE_ID
public static final PtfField REQUEST_CATEGORY
public static final PtfField COMPRESSION
public static final PtfField PIXEL_SCALE
public static final PtfField OBSERVATION_MODE
public static final PtfField ANCILLARY_DATA
public static final PtfField LSUBS
public static final PtfField ROLL_ANGLE
public static PtfField[] values()
for (PtfField c : PtfField.values()) System.out.println(c);
public static PtfField valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getFieldNumber()
public java.lang.String[] getAliases()
public static PtfField of(java.lang.String text)
PREDICT_TIME
:
PtfField.of("predict-time") PtfField.of("PREDICT TIME") PtfField.of(" Predict_Time ") PtfField.of("2")
If text is null, a NullPointerException
is thrown.
If text cannot be interpreted as an enum constant name, field
number, or alias, an IllegalArgumentException
is thrown.
text
- the text used to identify the enum constant.getFieldNumber()
,
getAliases()
,
isValidFieldNumber(int)
,
of(int)
public static PtfField of(int fieldNumber)
IllegalArgumentException
is thrown.fieldNumber
- the field number used to identify the enum constant.getFieldNumber()
,
isValidFieldNumber(int)
public static boolean isValidFieldNumber(int value)
0
through 31
.value
- the value to test.public static void main(java.lang.String... args)
of(String)
to get an
enum constant; if no match is found, that fact is reported. Results are
printed to the standard output stream.
The test application also prints a complete list of all enum constants of
this type, their field number
, and their aliases
, if any.
args
- the input values to be used to identify enum constants.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona