gov.nasa.pds.objectAccess
Enum DataType.NumericDataType

java.lang.Object
  extended by java.lang.Enum<DataType.NumericDataType>
      extended by gov.nasa.pds.objectAccess.DataType.NumericDataType
All Implemented Interfaces:
Serializable, Comparable<DataType.NumericDataType>
Enclosing interface:
DataType

public static enum DataType.NumericDataType
extends Enum<DataType.NumericDataType>

Author:
dcberrio Enumeration of numeric data types for tables and images. Includes fields for providing number of bits and vicar label aliases.

Enum Constant Summary
ASCII_Integer
           
ASCII_Real
           
IEEE754MSBDouble
           
IEEE754MSBSingle
           
SignedByte
           
UnsignedByte
           
UnsignedMSB2
           
UnsignedMSB4
           
UnsignedMSB8
           
 
Method Summary
 int getBits()
          Get number of bits for the data type.
 String getVicarAlias()
          Get VICAR alias for the data type.
 void setBits(int bits)
          Set number of bits for the data type.
 void setVicarAlias(String vicarAlias)
          Set the VICAR alias for the data type.
static DataType.NumericDataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataType.NumericDataType[] 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

SignedByte

public static final DataType.NumericDataType SignedByte

UnsignedByte

public static final DataType.NumericDataType UnsignedByte

UnsignedMSB2

public static final DataType.NumericDataType UnsignedMSB2

UnsignedMSB4

public static final DataType.NumericDataType UnsignedMSB4

UnsignedMSB8

public static final DataType.NumericDataType UnsignedMSB8

IEEE754MSBSingle

public static final DataType.NumericDataType IEEE754MSBSingle

IEEE754MSBDouble

public static final DataType.NumericDataType IEEE754MSBDouble

ASCII_Integer

public static final DataType.NumericDataType ASCII_Integer

ASCII_Real

public static final DataType.NumericDataType ASCII_Real
Method Detail

values

public static DataType.NumericDataType[] 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 (DataType.NumericDataType c : DataType.NumericDataType.values())
    System.out.println(c);

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

valueOf

public static DataType.NumericDataType 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

getBits

public int getBits()
Get number of bits for the data type.

Returns:
bits

setBits

public void setBits(int bits)
Set number of bits for the data type.

Parameters:
bits - number of bits.

getVicarAlias

public String getVicarAlias()
Get VICAR alias for the data type.

Returns:
vicarAlias

setVicarAlias

public void setVicarAlias(String vicarAlias)
Set the VICAR alias for the data type.

Parameters:
vicarAlias -


Copyright © 2013. All Rights Reserved.