| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Message.Type>
org.jivesoftware.smack.packet.Message.Type
public static enum Message.Type
Represents the type of a message.
| Enum Constant Summary | |
|---|---|
| chatTypically short text message used in line-by-line chat interfaces. | |
| errorindicates a messaging error. | |
| groupchatChat message sent to a groupchat server for group chats. | |
| headlineText message to be displayed in scrolling marquee displays. | |
| normal(Default) a normal text message used in email like interface. | |
| Method Summary | |
|---|---|
| static Message.Type | fromString(String name) | 
| static Message.Type | valueOf(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 are declared. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| 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 Message.Type[] values()
for (Message.Type c : Message.Type.values()) System.out.println(c);
public static Message.Type valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static Message.Type fromString(String name)
| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||