Package org.openmuc.jdlms.datatypes
Enum CompactArray.TypeDesc.Type
- java.lang.Object
-
- java.lang.Enum<CompactArray.TypeDesc.Type>
-
- org.openmuc.jdlms.datatypes.CompactArray.TypeDesc.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CompactArray.TypeDesc.Type>
,DlmsEnumeration
- Enclosing class:
- CompactArray.TypeDesc
public static enum CompactArray.TypeDesc.Type extends java.lang.Enum<CompactArray.TypeDesc.Type> implements DlmsEnumeration
The types of a type description.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
BCD
BIT_STRING
BOOL
DATE
DATE_TIME
DONT_CARE
DOUBLE_LONG
DOUBLE_LONG_UNSIGNED
ENUMERATE
ERR_NONE_SELECTED
FLOAT32
FLOAT64
INTEGER
LONG_INTEGER
LONG_UNSIGNED
LONG64
LONG64_UNSIGNED
NULL_DATA
OCTET_STRING
STRUCTURE
TIME
UNSIGNED
UTF8_STRING
VISIBLE_STRING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompactArray.TypeDesc.Type
forValue(long code)
long
getCode()
static CompactArray.TypeDesc.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CompactArray.TypeDesc.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERR_NONE_SELECTED
public static final CompactArray.TypeDesc.Type ERR_NONE_SELECTED
-
NULL_DATA
public static final CompactArray.TypeDesc.Type NULL_DATA
-
ARRAY
public static final CompactArray.TypeDesc.Type ARRAY
-
STRUCTURE
public static final CompactArray.TypeDesc.Type STRUCTURE
-
BOOL
public static final CompactArray.TypeDesc.Type BOOL
-
BIT_STRING
public static final CompactArray.TypeDesc.Type BIT_STRING
-
DOUBLE_LONG
public static final CompactArray.TypeDesc.Type DOUBLE_LONG
-
DOUBLE_LONG_UNSIGNED
public static final CompactArray.TypeDesc.Type DOUBLE_LONG_UNSIGNED
-
OCTET_STRING
public static final CompactArray.TypeDesc.Type OCTET_STRING
-
VISIBLE_STRING
public static final CompactArray.TypeDesc.Type VISIBLE_STRING
-
UTF8_STRING
public static final CompactArray.TypeDesc.Type UTF8_STRING
-
BCD
public static final CompactArray.TypeDesc.Type BCD
-
INTEGER
public static final CompactArray.TypeDesc.Type INTEGER
-
LONG_INTEGER
public static final CompactArray.TypeDesc.Type LONG_INTEGER
-
UNSIGNED
public static final CompactArray.TypeDesc.Type UNSIGNED
-
LONG_UNSIGNED
public static final CompactArray.TypeDesc.Type LONG_UNSIGNED
-
LONG64
public static final CompactArray.TypeDesc.Type LONG64
-
LONG64_UNSIGNED
public static final CompactArray.TypeDesc.Type LONG64_UNSIGNED
-
ENUMERATE
public static final CompactArray.TypeDesc.Type ENUMERATE
-
FLOAT32
public static final CompactArray.TypeDesc.Type FLOAT32
-
FLOAT64
public static final CompactArray.TypeDesc.Type FLOAT64
-
DATE_TIME
public static final CompactArray.TypeDesc.Type DATE_TIME
-
DATE
public static final CompactArray.TypeDesc.Type DATE
-
TIME
public static final CompactArray.TypeDesc.Type TIME
-
DONT_CARE
public static final CompactArray.TypeDesc.Type DONT_CARE
-
-
Method Detail
-
values
public static CompactArray.TypeDesc.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompactArray.TypeDesc.Type c : CompactArray.TypeDesc.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompactArray.TypeDesc.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCode
public long getCode()
- Specified by:
getCode
in interfaceDlmsEnumeration
-
forValue
public static CompactArray.TypeDesc.Type forValue(long code)
-
-