|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DataType>
de.jstacs.DataType
public enum DataType
This enum defines a number of datatypes that can be used for Parameter
and Result
.
Parameter
,
Result
Enum Constant Summary | |
---|---|
BOOLEAN
This value indicates the data type boolean . |
|
BYTE
This value indicates the data type byte . |
|
CHAR
This value indicates the data type char . |
|
DOUBLE
This value indicates the data type double . |
|
FILE
This value indicates the data type FileParameter.FileRepresentation . |
|
FLOAT
This value indicates the data type float . |
|
HTML
This value indicates the data type HTML. |
|
INT
This value indicates the data type int . |
|
LIST
This value indicates the data type ListResult . |
|
LONG
This value indicates the data type long . |
|
PARAMETERSET
This value indicates the data type ParameterSet . |
|
PNG
This value indicates the data type png. |
|
SAMPLE
This value indicates the data type Sample . |
|
SHORT
This value indicates the data type short . |
|
STORABLE
This value indicates the data type Storable . |
|
STRING
This value indicates the data type String . |
Method Summary | |
---|---|
static boolean |
canBeCastedFromTo(DataType from,
DataType to)
Checks if the DataType from can be casted to the DataType to
without loosing information. |
static DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DataType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DataType BOOLEAN
boolean
.
public static final DataType CHAR
char
.
public static final DataType BYTE
byte
.
public static final DataType SHORT
short
.
public static final DataType INT
int
.
public static final DataType LONG
long
.
public static final DataType FLOAT
float
.
public static final DataType DOUBLE
double
.
public static final DataType STRING
String
.
public static final DataType HTML
public static final DataType PNG
public static final DataType STORABLE
Storable
.
public static final DataType SAMPLE
Sample
.
public static final DataType LIST
ListResult
.
public static final DataType PARAMETERSET
ParameterSet
.
public static final DataType FILE
FileParameter.FileRepresentation
.
Method Detail |
---|
public static final DataType[] values()
for(DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static boolean canBeCastedFromTo(DataType from, DataType to)
DataType
from
can be casted to the DataType
to
without loosing information. The following casts are allowed:
BYTE
-> BYTE
, SHORT
, INT
, LONG
, DOUBLE
SHORT
-> SHORT
, INT
, LONG
, DOUBLE
INT
-> INT
, LONG
, DOUBLE
LONG
-> LONG
DOUBLE
-> DOUBLE
from
- the DataType
to cast fromto
- the DataType
to cast to
true
if the cast is possible, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |