Package org.xmpp.packet
Enum Message.Type
- All Implemented Interfaces:
Serializable,Comparable<Message.Type>,java.lang.constant.Constable
- Enclosing class:
- Message
Type-safe enumeration for the type of a message. The types are:
Message.Type.normal-- (Default) a normal text message used in email like interface.Message.Type.chat -- a typically short text message used in line-by-line chat interfaces.Message.Type.groupchat-- a chat message sent to a groupchat server for group chats.Message.Type.headline-- a text message to be displayed in scrolling marquee displays.Message.Type.error-- indicates a messaging error.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTypically short text message used in line-by-line chat interfaces.Indicates a messaging error.Chat message sent to a groupchat server for group chats.Text message to be displayed in scrolling marquee displays.(Default) a normal text message used in email like interface. -
Method Summary
Modifier and TypeMethodDescriptionstatic Message.TypeReturns the enum constant of this type with the specified name.static Message.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
normal
(Default) a normal text message used in email like interface. -
chat
Typically short text message used in line-by-line chat interfaces. -
groupchat
Chat message sent to a groupchat server for group chats. -
headline
Text message to be displayed in scrolling marquee displays. -
error
Indicates a messaging error.
-
-
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
-