|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.hds.HDSType
public class HDSType
Enumeration of the numeric data types available within the HDS system.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Method Detail |
---|
public String getName()
public Number getBadValue()
public Type getJavaType()
public String toString()
toString
in class Object
public static HDSType fromJavaType(Type javaType)
javaType
- object representing a java primitive type
public 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |