mysql
Enum ObserveSql.Types
java.lang.Object
java.lang.Enum<ObserveSql.Types>
mysql.ObserveSql.Types
- All Implemented Interfaces:
- Serializable, Comparable<ObserveSql.Types>
- Enclosing class:
- ObserveSql
public static enum ObserveSql.Types
- extends Enum<ObserveSql.Types>
Enum version of image types.
SKY
public static final ObserveSql.Types SKY
SCIENCE
public static final ObserveSql.Types SCIENCE
FLAT
public static final ObserveSql.Types FLAT
BIAS
public static final ObserveSql.Types BIAS
CALIB
public static final ObserveSql.Types CALIB
DARK
public static final ObserveSql.Types DARK
UNKNOWN
public static final ObserveSql.Types UNKNOWN
db
private int db
head
private String head
values
public static ObserveSql.Types[] 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 (ObserveSql.Types c : ObserveSql.Types.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ObserveSql.Types 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
getSqlType
public int getSqlType()
getFitsHeader
public String getFitsHeader()
createFromSql
public static ObserveSql.Types createFromSql(int sql)
createFromFitsHeader
public static ObserveSql.Types createFromFitsHeader(String sql)