Package com.lucimber.dbus.message
Enum Class MessageFlag
- All Implemented Interfaces:
Serializable
,Comparable<MessageFlag>
,Constable
D-Bus message flags as defined by the D-Bus wire protocol.
Flags correspond to individual bits in the message header's "flags" byte.
- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow the client to interactively prompt the user for authentication credentials.Do not automatically start the destination service if not already running.No reply is expected for this method call message. -
Method Summary
Modifier and TypeMethodDescriptionbyte
code()
Returns the bit mask value for this flag.static MessageFlag
Returns the enum constant of this class with the specified name.static MessageFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_REPLY_EXPECTED
No reply is expected for this method call message.Bit mask: 0x01
-
NO_AUTO_START
Do not automatically start the destination service if not already running.Bit mask: 0x02
-
ALLOW_INTERACTIVE_AUTHORIZATION
Allow the client to interactively prompt the user for authentication credentials.Bit mask: 0x04
-
-
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
-
code
public byte code()Returns the bit mask value for this flag.- Returns:
- the flag's bit mask (0x01, 0x02, etc.)
-