public class HDSType extends Object
Modifier and Type | Field and Description |
---|---|
static HDSType |
_BYTE
Signed byte type.
|
static HDSType |
_DOUBLE
Double precision (8-byte floating point) type.
|
static HDSType |
_INTEGER
Signed integer (4-byte) type.
|
static HDSType |
_REAL
Real (4-byte floating point) type.
|
static HDSType |
_UBYTE
Unsigned byte type.
|
static HDSType |
_UWORD
Unsigned word (2-byte) type.
|
static HDSType |
_WORD
Signed word (2-byte) type.
|
Modifier and Type | Method and Description |
---|---|
static HDSType |
fromJavaType(Type javaType)
Gets the HDSType object most naturally associated with a given
java primitive numeric type.
|
static HDSType |
fromName(String name)
Gets an HDSType from its HDS name.
|
Number |
getBadValue()
Returns the magic bad value used within the HDS/ARY/NDF system
for this data type.
|
Type |
getJavaType()
Returns the java type most naturally associated with this HDS type.
|
String |
getName()
Returns the name of this type.
|
String |
toString() |
public static HDSType _BYTE
public static HDSType _UBYTE
public static HDSType _WORD
public static HDSType _UWORD
public static HDSType _INTEGER
public static HDSType _REAL
public static HDSType _DOUBLE
public String getName()
public Number getBadValue()
public Type getJavaType()
public static HDSType fromJavaType(Type javaType)
javaType
- object representing a java primitive typepublic static HDSType fromName(String name)
getName()
method. Returns null
if
name
does not refer to a supported HDS numeric type;
note this will apply to _LOGICAL, _CHAR and structure types
(ones not starting with an underscore).name
- name of the HDS type, including prepended underscore.
Not case sensitive.name
,
or null
if it is not oneCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.