Package com.lucimber.dbus.message
Enum Class HeaderField
- All Implemented Interfaces:
Serializable
,Comparable<HeaderField>
,Constable
D-Bus header field codes, as defined by the D-Bus specification.
Each header field is represented as a single byte code and maps to a standard D-Bus header entry in the a{yv} dict.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDestination bus name.Error name for error messages.Interface name associated with the message.Member (method or signal) name.Object path to the object receiving or emitting the message.Reply serial for method return messages.Sender bus name.Signature of the body parameters.Number of UNIX file descriptors in the message. -
Method Summary
Modifier and TypeMethodDescriptionstatic HeaderField
fromCode
(byte code) Looks up a HeaderField by its byte code.byte
getCode()
Returns the byte code for this header field.static HeaderField
Returns the enum constant of this class with the specified name.static HeaderField[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PATH
Object path to the object receiving or emitting the message. -
INTERFACE
Interface name associated with the message. -
MEMBER
Member (method or signal) name. -
ERROR_NAME
Error name for error messages. -
REPLY_SERIAL
Reply serial for method return messages. -
DESTINATION
Destination bus name. -
SENDER
Sender bus name. -
SIGNATURE
Signature of the body parameters. -
UNIX_FDS
Number of UNIX file descriptors in the message.
-
-
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
-
fromCode
Looks up a HeaderField by its byte code.- Parameters:
code
- the byte code- Returns:
- the matching HeaderField
- Throws:
IllegalArgumentException
- if no matching field exists
-
getCode
public byte getCode()Returns the byte code for this header field.- Returns:
- the D-Bus header field code
-