Enum CANOpenDataType
- java.lang.Object
-
- java.lang.Enum<CANOpenDataType>
-
- org.apache.plc4x.java.canopen.readwrite.CANOpenDataType
-
- All Implemented Interfaces:
Serializable,Comparable<CANOpenDataType>
public enum CANOpenDataType extends Enum<CANOpenDataType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEANINTEGER16INTEGER24INTEGER32INTEGER40INTEGER48INTEGER56INTEGER64INTEGER8OCTET_STRINGREAL32REAL64RECORDTIME_DIFFERENCETIME_OF_DAYUNICODE_STRINGUNSIGNED16UNSIGNED24UNSIGNED32UNSIGNED40UNSIGNED48UNSIGNED56UNSIGNED64UNSIGNED8VISIBLE_STRING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CANOpenDataTypeenumForValue(long value)static List<CANOpenDataType>enumsForFieldNumBits(short fieldValue)static List<CANOpenDataType>enumsForFieldPlcValueName(String fieldValue)static CANOpenDataTypefirstEnumForFieldNumBits(short fieldValue)static CANOpenDataTypefirstEnumForFieldPlcValueName(String fieldValue)shortgetNumBits()StringgetPlcValueName()longgetValue()static BooleanisDefined(long value)static CANOpenDataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CANOpenDataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final CANOpenDataType BOOLEAN
-
UNSIGNED8
public static final CANOpenDataType UNSIGNED8
-
UNSIGNED16
public static final CANOpenDataType UNSIGNED16
-
UNSIGNED24
public static final CANOpenDataType UNSIGNED24
-
UNSIGNED32
public static final CANOpenDataType UNSIGNED32
-
UNSIGNED40
public static final CANOpenDataType UNSIGNED40
-
UNSIGNED48
public static final CANOpenDataType UNSIGNED48
-
UNSIGNED56
public static final CANOpenDataType UNSIGNED56
-
UNSIGNED64
public static final CANOpenDataType UNSIGNED64
-
INTEGER8
public static final CANOpenDataType INTEGER8
-
INTEGER16
public static final CANOpenDataType INTEGER16
-
INTEGER24
public static final CANOpenDataType INTEGER24
-
INTEGER32
public static final CANOpenDataType INTEGER32
-
INTEGER40
public static final CANOpenDataType INTEGER40
-
INTEGER48
public static final CANOpenDataType INTEGER48
-
INTEGER56
public static final CANOpenDataType INTEGER56
-
INTEGER64
public static final CANOpenDataType INTEGER64
-
REAL32
public static final CANOpenDataType REAL32
-
REAL64
public static final CANOpenDataType REAL64
-
RECORD
public static final CANOpenDataType RECORD
-
OCTET_STRING
public static final CANOpenDataType OCTET_STRING
-
VISIBLE_STRING
public static final CANOpenDataType VISIBLE_STRING
-
UNICODE_STRING
public static final CANOpenDataType UNICODE_STRING
-
TIME_OF_DAY
public static final CANOpenDataType TIME_OF_DAY
-
TIME_DIFFERENCE
public static final CANOpenDataType TIME_DIFFERENCE
-
-
Method Detail
-
values
public static CANOpenDataType[] 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 (CANOpenDataType c : CANOpenDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CANOpenDataType 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 long getValue()
-
getPlcValueName
public String getPlcValueName()
-
firstEnumForFieldPlcValueName
public static CANOpenDataType firstEnumForFieldPlcValueName(String fieldValue)
-
enumsForFieldPlcValueName
public static List<CANOpenDataType> enumsForFieldPlcValueName(String fieldValue)
-
getNumBits
public short getNumBits()
-
firstEnumForFieldNumBits
public static CANOpenDataType firstEnumForFieldNumBits(short fieldValue)
-
enumsForFieldNumBits
public static List<CANOpenDataType> enumsForFieldNumBits(short fieldValue)
-
enumForValue
public static CANOpenDataType enumForValue(long value)
-
isDefined
public static Boolean isDefined(long value)
-
-