- All Implemented Interfaces:
QtAbstractEnumerator
,QtEnumerator
,Serializable
,Comparable<QModbusPdu.FunctionCode>
,Constable
- Enclosing class:
QModbusPdu
Java wrapper for Qt enum QModbusPdu::FunctionCode
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresentingQModbusPdu::
Diagnostics RepresentingQModbusPdu::
EncapsulatedInterfaceTransport RepresentingQModbusPdu::
GetCommEventCounter RepresentingQModbusPdu::
GetCommEventLog RepresentingQModbusPdu::
Invalid RepresentingQModbusPdu::
MaskWriteRegister RepresentingQModbusPdu::
ReadCoils RepresentingQModbusPdu::
ReadDiscreteInputs RepresentingQModbusPdu::
ReadExceptionStatus RepresentingQModbusPdu::
ReadFifoQueue RepresentingQModbusPdu::
ReadFileRecord RepresentingQModbusPdu::
ReadHoldingRegisters RepresentingQModbusPdu::
ReadInputRegisters RepresentingQModbusPdu::
ReadWriteMultipleRegisters RepresentingQModbusPdu::
ReportServerId RepresentingQModbusPdu::
UndefinedFunctionCode RepresentingQModbusPdu::
WriteFileRecord RepresentingQModbusPdu::
WriteMultipleCoils RepresentingQModbusPdu::
WriteMultipleRegisters RepresentingQModbusPdu::
WriteSingleCoil RepresentingQModbusPdu::
WriteSingleRegister -
Method Summary
Modifier and TypeMethodDescriptionstatic QModbusPdu.FunctionCode
resolve
(int value) Returns the corresponding enum entry for the given value.int
value()
This function should return an integer value for the enum values of the enumeration that implements this interface.static QModbusPdu.FunctionCode
Returns the enum constant of this type with the specified name.static QModbusPdu.FunctionCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface io.qt.QtAbstractEnumerator
getDeclaringClass, name, ordinal
-
Enum Constant Details
-
Invalid
Representing
QModbusPdu::
Invalid -
ReadCoils
Representing
QModbusPdu::
ReadCoils -
ReadDiscreteInputs
Representing
QModbusPdu::
ReadDiscreteInputs -
ReadHoldingRegisters
Representing
QModbusPdu::
ReadHoldingRegisters -
ReadInputRegisters
Representing
QModbusPdu::
ReadInputRegisters -
WriteSingleCoil
Representing
QModbusPdu::
WriteSingleCoil -
WriteSingleRegister
Representing
QModbusPdu::
WriteSingleRegister -
ReadExceptionStatus
Representing
QModbusPdu::
ReadExceptionStatus -
Diagnostics
Representing
QModbusPdu::
Diagnostics -
GetCommEventCounter
Representing
QModbusPdu::
GetCommEventCounter -
GetCommEventLog
Representing
QModbusPdu::
GetCommEventLog -
WriteMultipleCoils
Representing
QModbusPdu::
WriteMultipleCoils -
WriteMultipleRegisters
Representing
QModbusPdu::
WriteMultipleRegisters -
ReportServerId
Representing
QModbusPdu::
ReportServerId -
ReadFileRecord
Representing
QModbusPdu::
ReadFileRecord -
WriteFileRecord
Representing
QModbusPdu::
WriteFileRecord -
MaskWriteRegister
Representing
QModbusPdu::
MaskWriteRegister -
ReadWriteMultipleRegisters
Representing
QModbusPdu::
ReadWriteMultipleRegisters -
ReadFifoQueue
Representing
QModbusPdu::
ReadFifoQueue -
EncapsulatedInterfaceTransport
Representing
QModbusPdu::
EncapsulatedInterfaceTransport -
UndefinedFunctionCode
Representing
QModbusPdu::
UndefinedFunctionCode
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
value
public int value()This function should return an integer value for the enum values of the enumeration that implements this interface. Default isEnum.ordinal()
.- Specified by:
value
in interfaceQtEnumerator
-
resolve
Returns the corresponding enum entry for the given value.- Parameters:
value
-- Returns:
- enum entry
-