- All Implemented Interfaces:
Serializable
,Comparable<Message.Label>
,Constable
- Enclosing class:
- Message
Defines the possible labels of a
Message
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccept Type.Authorization.Content Type.Layout Checksum.Layout Name.Method Name.Originator.Path Info.Reply Path.Request Id.Server Name.Service Name.Switch Name.Timestamp.UniqueID. -
Method Summary
Modifier and TypeMethodDescriptionstatic Message.Label
fromCode
(int code) Returns theLabel
with the specified unique code.int
getCode()
Returns the unique code of theLabel
.static Message.Label
Returns the enum constant of this class with the specified name.static Message.Label[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AcceptType
Accept Type. -
Authorization
Authorization. -
ContentType
Content Type. -
LayoutChecksum
Layout Checksum. -
LayoutName
Layout Name. -
MethodName
Method Name. -
Originator
Originator. -
PathInfo
Path Info. -
ReplyPath
Reply Path. -
RequestId
Request Id. -
ServerName
Server Name. -
ServiceName
Service Name. -
SwitchName
Switch Name. -
Timestamp
Timestamp. -
UniqueID
UniqueID.
-
-
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
-
getCode
public int getCode()Returns the unique code of theLabel
.- Returns:
- the unique code of the
Label
.
-
fromCode
Returns theLabel
with the specified unique code.- Parameters:
code
- the unique code of the requiredLabel
.- Returns:
- the
Label
item indexed by suppliedcode
. - Throws:
IllegalArgumentException
- ifcode
is out-of-range.
-