HiRISE

HiRISE.HiPlan.PTF
Enum PTF_Record_Table_Model.ColumnType

java.lang.Object
  extended by java.lang.Enum<PTF_Record_Table_Model.ColumnType>
      extended by HiRISE.HiPlan.PTF.PTF_Record_Table_Model.ColumnType
All Implemented Interfaces:
Serializable, Comparable<PTF_Record_Table_Model.ColumnType>
Enclosing class:
PTF_Record_Table_Model

public static enum PTF_Record_Table_Model.ColumnType
extends Enum<PTF_Record_Table_Model.ColumnType>

An enumeration of the types of data that may be contained in columns of the PTF record table model. In particular, instrument spare fields 1, 2, and 3 may contain strictly numbers, strictly text, or a mix, on a record-by-record basis.

Version:
1.24
Author:
Christian Schaller - UA/PIRL

Enum Constant Summary
MIXED
          The column contains numbers and text.
NUMBER
          The column contains only numbers and should be formatted as such.
TEXT
          The column contains only text and should be so formatted.
 
Method Summary
static PTF_Record_Table_Model.ColumnType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PTF_Record_Table_Model.ColumnType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NUMBER

public static final PTF_Record_Table_Model.ColumnType NUMBER
The column contains only numbers and should be formatted as such.


TEXT

public static final PTF_Record_Table_Model.ColumnType TEXT
The column contains only text and should be so formatted.


MIXED

public static final PTF_Record_Table_Model.ColumnType MIXED
The column contains numbers and text. It should be formatted as text.

Method Detail

values

public static PTF_Record_Table_Model.ColumnType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PTF_Record_Table_Model.ColumnType c : PTF_Record_Table_Model.ColumnType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PTF_Record_Table_Model.ColumnType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

HiRISE

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