Enum ModbusDataType
- java.lang.Object
-
- java.lang.Enum<ModbusDataType>
-
- org.apache.plc4x.java.modbus.readwrite.ModbusDataType
-
- All Implemented Interfaces:
Serializable,Comparable<ModbusDataType>
public enum ModbusDataType extends Enum<ModbusDataType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModbusDataTypeenumForValue(short value)static List<ModbusDataType>enumsForFieldDataTypeSize(short fieldValue)static ModbusDataTypefirstEnumForFieldDataTypeSize(short fieldValue)shortgetDataTypeSize()shortgetValue()static BooleanisDefined(short value)static ModbusDataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ModbusDataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOL
public static final ModbusDataType BOOL
-
BYTE
public static final ModbusDataType BYTE
-
WORD
public static final ModbusDataType WORD
-
DWORD
public static final ModbusDataType DWORD
-
LWORD
public static final ModbusDataType LWORD
-
SINT
public static final ModbusDataType SINT
-
INT
public static final ModbusDataType INT
-
DINT
public static final ModbusDataType DINT
-
LINT
public static final ModbusDataType LINT
-
USINT
public static final ModbusDataType USINT
-
UINT
public static final ModbusDataType UINT
-
UDINT
public static final ModbusDataType UDINT
-
ULINT
public static final ModbusDataType ULINT
-
REAL
public static final ModbusDataType REAL
-
LREAL
public static final ModbusDataType LREAL
-
TIME
public static final ModbusDataType TIME
-
LTIME
public static final ModbusDataType LTIME
-
DATE
public static final ModbusDataType DATE
-
LDATE
public static final ModbusDataType LDATE
-
TIME_OF_DAY
public static final ModbusDataType TIME_OF_DAY
-
LTIME_OF_DAY
public static final ModbusDataType LTIME_OF_DAY
-
DATE_AND_TIME
public static final ModbusDataType DATE_AND_TIME
-
LDATE_AND_TIME
public static final ModbusDataType LDATE_AND_TIME
-
CHAR
public static final ModbusDataType CHAR
-
WCHAR
public static final ModbusDataType WCHAR
-
STRING
public static final ModbusDataType STRING
-
WSTRING
public static final ModbusDataType WSTRING
-
-
Method Detail
-
values
public static ModbusDataType[] 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 (ModbusDataType c : ModbusDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModbusDataType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public short getValue()
-
getDataTypeSize
public short getDataTypeSize()
-
firstEnumForFieldDataTypeSize
public static ModbusDataType firstEnumForFieldDataTypeSize(short fieldValue)
-
enumsForFieldDataTypeSize
public static List<ModbusDataType> enumsForFieldDataTypeSize(short fieldValue)
-
enumForValue
public static ModbusDataType enumForValue(short value)
-
isDefined
public static Boolean isDefined(short value)
-
-