Package gov.nasa.pds.objectAccess
Enum DataType.NumericDataType
- java.lang.Object
-
- java.lang.Enum<DataType.NumericDataType>
-
- gov.nasa.pds.objectAccess.DataType.NumericDataType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DataType.NumericDataType>
- Enclosing interface:
- DataType
public static enum DataType.NumericDataType extends java.lang.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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBits()
Get number of bits for the data type.java.lang.String
getVicarAlias()
Get VICAR alias for the data type.void
setBits(int bits)
Set number of bits for the data type.void
setVicarAlias(java.lang.String vicarAlias)
Set the VICAR alias for the data type.static DataType.NumericDataType
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
SignedByte
public static final DataType.NumericDataType SignedByte
-
UnsignedByte
public static final DataType.NumericDataType UnsignedByte
-
SignedLSB2
public static final DataType.NumericDataType SignedLSB2
-
SignedLSB4
public static final DataType.NumericDataType SignedLSB4
-
SignedLSB8
public static final DataType.NumericDataType SignedLSB8
-
UnsignedLSB2
public static final DataType.NumericDataType UnsignedLSB2
-
UnsignedLSB4
public static final DataType.NumericDataType UnsignedLSB4
-
UnsignedLSB8
public static final DataType.NumericDataType UnsignedLSB8
-
SignedMSB2
public static final DataType.NumericDataType SignedMSB2
-
SignedMSB4
public static final DataType.NumericDataType SignedMSB4
-
SignedMSB8
public static final DataType.NumericDataType SignedMSB8
-
UnsignedMSB2
public static final DataType.NumericDataType UnsignedMSB2
-
UnsignedMSB4
public static final DataType.NumericDataType UnsignedMSB4
-
UnsignedMSB8
public static final DataType.NumericDataType UnsignedMSB8
-
IEEE754LSBSingle
public static final DataType.NumericDataType IEEE754LSBSingle
-
IEEE754LSBDouble
public static final DataType.NumericDataType IEEE754LSBDouble
-
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
-
ComplexLSB8
public static final DataType.NumericDataType ComplexLSB8
-
ComplexMSB8
public static final DataType.NumericDataType ComplexMSB8
-
ComplexLSB16
public static final DataType.NumericDataType ComplexLSB16
-
ComplexMSB16
public static final DataType.NumericDataType ComplexMSB16
-
-
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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.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 java.lang.String getVicarAlias()
Get VICAR alias for the data type.- Returns:
- vicarAlias
-
setVicarAlias
public void setVicarAlias(java.lang.String vicarAlias)
Set the VICAR alias for the data type.- Parameters:
vicarAlias
-
-
-