|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Message.Type> org.xmpp.packet.Message.Type
public static enum Message.Type
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.cha
t -- 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.
Enum Constant Summary | |
---|---|
chat
Typically short text message used in line-by-line chat interfaces. |
|
error
Indicates a messaging error. |
|
groupchat
Chat message sent to a groupchat server for group chats. |
|
headline
Text message to be displayed in scrolling marquee displays. |
|
normal
(Default) a normal text message used in email like interface. |
Method Summary | |
---|---|
static Message.Type |
valueOf(java.lang.String name)
Returns 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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Message.Type normal
public static final Message.Type chat
public static final Message.Type groupchat
public static final Message.Type headline
public static final Message.Type error
Method Detail |
---|
public static final Message.Type[] values()
for(Message.Type c : Message.Type.values()) System.out.println(c);
public static Message.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |