Public Member Functions | |
boolean | hasAttributes () throws CodaException |
FormatEnum | getFormat () throws CodaException |
TypeClassEnum | getTypeClass () throws CodaException |
NativeTypeEnum | getReadType () throws CodaException |
int | getStringLength () throws CodaException |
long | getBitSize () throws CodaException |
String | getName () throws CodaException |
String | getDescription () throws CodaException |
String | getUnit () throws CodaException |
String | getFixedValue () throws CodaException |
Type | getAttributes () throws CodaException |
int | getNumRecordFields () throws CodaException |
int | getRecordFieldIndexFromName (String name) throws CodaException |
Type | getRecordFieldType (int index) throws CodaException |
String | getRecordFieldName (int index) throws CodaException |
String | getRecordFieldRealName (int index) throws CodaException |
boolean | getRecordFieldHiddenStatus (int index) throws CodaException |
int | getRecordFieldAvailableStatus (int index) throws CodaException |
boolean | getRecordUnionStatus () throws CodaException |
int | getArrayNumDims () throws CodaException |
int[] | getArrayDim () throws CodaException |
Type | getArrayBaseType () throws CodaException |
SpecialTypeEnum | getSpecialType () throws CodaException |
Type | getSpecialBaseType () throws CodaException |
Static Public Member Functions | |
static String | getFormatName (FormatEnum format) |
static String | getClassName (TypeClassEnum typeClass) |
static String | getNativeTypeName (NativeTypeEnum nativeType) |
static String | getSpecialTypeName (SpecialTypeEnum specialType) |
CODA Type class.
Each data element or group of data elements (such as an array or record) in a product file, independent of whether it is an ascii, binary, XML, netCDF, HDF4, or HDF5 product, has a unique description in CODA.
This class represents instances of such type descriptions and provides methods to retrieve information about the type.
Type getArrayBaseType | ( | ) | throws CodaException |
Get the CODA type for the elements of an array.
CodaException | If an error occurred. |
int [] getArrayDim | ( | ) | throws CodaException |
Retrieve the dimensions with a constant value for an array.
CodaException | If an error occurred. |
int getArrayNumDims | ( | ) | throws CodaException |
Get the number of dimensions for an array.
CodaException | If an error occurred. |
Type getAttributes | ( | ) | throws CodaException |
Get the type for the associated attribute record.
CodaException | If an error occurred. |
long getBitSize | ( | ) | throws CodaException |
Get the bit size for the data type.
CodaException | If an error occurred. |
|
static |
Returns the name of a type class. In case the type class is not recognised the string "unknown" is returned.
typeClass | CODA type class |
String getDescription | ( | ) | throws CodaException |
Get the description of a type.
CodaException | If an error occurred. |
String getFixedValue | ( | ) | throws CodaException |
Get the associated fixed value string of a type if it has one.
CodaException | If an error occurred. |
FormatEnum getFormat | ( | ) | throws CodaException |
|
static |
Returns the name of a storage format.
format | CODA storage format |
String getName | ( | ) | throws CodaException |
|
static |
Returns the name of a native type.
nativeType | CODA native type |
int getNumRecordFields | ( | ) | throws CodaException |
Get the number of fields of a record type.
CodaException | If an error occurred. |
NativeTypeEnum getReadType | ( | ) | throws CodaException |
Get the best native type for reading data of a CODA type.
CodaException | If an error occurred. |
int getRecordFieldAvailableStatus | ( | int | index | ) | throws CodaException |
Get the available status of a record field.
index | Field index (0 <= index < number of fields). |
CodaException | If an error occurred. |
boolean getRecordFieldHiddenStatus | ( | int | index | ) | throws CodaException |
Get the hidden status of a record field.
index | Field index (0 <= index < number of fields). |
CodaException | If an error occurred. |
int getRecordFieldIndexFromName | ( | String | name | ) | throws CodaException |
Get the field index from a field name for a record type.
name | Name of the record field. |
CodaException | If an error occurred. |
String getRecordFieldName | ( | int | index | ) | throws CodaException |
Get the name of a record field.
index | Field index (0 <= index < number of fields). |
CodaException | If an error occurred. |
String getRecordFieldRealName | ( | int | index | ) | throws CodaException |
Get the real name of a record field.
index | Field index (0 <= index < number of fields). |
CodaException | If an error occurred. |
Type getRecordFieldType | ( | int | index | ) | throws CodaException |
Get the CODA type for a record field.
index | Field index (0 <= index < number of fields). |
CodaException | If an error occurred. |
boolean getRecordUnionStatus | ( | ) | throws CodaException |
Get the union status of a record.
CodaException | If an error occurred. |
Type getSpecialBaseType | ( | ) | throws CodaException |
Get the base type for a special type.
CodaException | If an error occurred. |
SpecialTypeEnum getSpecialType | ( | ) | throws CodaException |
Get the special type for a type.
CodaException | If an error occurred. |
|
static |
Returns the name of a special type. In case the special type is not recognised the string "unknown" is returned.
specialType | CODA special type |
int getStringLength | ( | ) | throws CodaException |
Get the length in bytes of a string data type.
CodaException | If an error occurred. |
TypeClassEnum getTypeClass | ( | ) | throws CodaException |
String getUnit | ( | ) | throws CodaException |
boolean hasAttributes | ( | ) | throws CodaException |
Determine wether the type has attributes.
CodaException | If an error occurred. |