org.openmuc.framework.data
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
BYTE_ARRAY |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
STRING |
Modifier and Type | Method and Description |
---|---|
static Value |
newValue(ValueType fromType,
byte[] fromBytes) |
static ValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueType DOUBLE
public static final ValueType FLOAT
public static final ValueType LONG
public static final ValueType INTEGER
public static final ValueType SHORT
public static final ValueType BYTE
public static final ValueType BOOLEAN
public static final ValueType BYTE_ARRAY
public static final ValueType STRING
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Value newValue(ValueType fromType, byte[] fromBytes) throws TypeConversionException
TypeConversionException