Package net.solarnetwork.node.io.bacnet
Enum Class BacnetDataType
- All Implemented Interfaces:
Serializable,Comparable<BacnetDataType>,Constable,net.solarnetwork.domain.CodedValue
public enum BacnetDataType
extends Enum<BacnetDataType>
implements net.solarnetwork.domain.CodedValue
BACnet data type enumeration.
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBit string.Boolean.Character string.Date.64-bit floating point.Enumeration.Null.Object identifier.Octet (byte) string.32-bit floating point.Signed integer.Time.Unsigned integer. -
Method Summary
Modifier and TypeMethodDescriptionstatic BacnetDataTypeGet an enumeration value for a string key.intgetCode()intgetId()Get the object ID.static BacnetDataTypeReturns the enum constant of this class with the specified name.static BacnetDataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Null
Null. -
Boolean
Boolean. -
UnsignedInteger
Unsigned integer. -
SignedInteger
Signed integer. -
Real
32-bit floating point. -
Double
64-bit floating point. -
OctetString
Octet (byte) string. -
CharacterString
Character string. -
BitString
Bit string. -
Enumerated
Enumeration. -
Date
Date. -
Time
Time. -
ObjectIdentifier
Object identifier.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode()- Specified by:
getCodein interfacenet.solarnetwork.domain.CodedValue
-
getId
public int getId()Get the object ID.This is an alias for
getCode().- Returns:
- the ID
-
forKey
Get an enumeration value for a string key.- Parameters:
value- the value to parse into an enumeration value; can be either an integercodeor an enumeration name- Returns:
- the enumeration value
- Throws:
IllegalArgumentException- if the value cannot be parsed into an enumeration value- See Also:
-
CodedValue.forCodeValue(int, Class, Enum)
-