Smack

org.jivesoftware.smack.packet
Class Message.Type

java.lang.Object
  extended by org.jivesoftware.smack.packet.Message.Type
Enclosing class:
Message

public static class Message.Type
extends Object

Represents the type of a message.


Field Summary
static Message.Type CHAT
          Typically short text message used in line-by-line chat interfaces.
static Message.Type ERROR
          indicates a messaging error.
static Message.Type GROUP_CHAT
          Chat message sent to a groupchat server for group chats.
static Message.Type HEADLINE
          Text message to be displayed in scrolling marquee displays.
static Message.Type NORMAL
          (Default) a normal text message used in email like interface.
 
Method Summary
static Message.Type fromString(String type)
          Converts a String value into its Type representation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMAL

public static final Message.Type NORMAL
(Default) a normal text message used in email like interface.


CHAT

public static final Message.Type CHAT
Typically short text message used in line-by-line chat interfaces.


GROUP_CHAT

public static final Message.Type GROUP_CHAT
Chat message sent to a groupchat server for group chats.


HEADLINE

public static final Message.Type HEADLINE
Text message to be displayed in scrolling marquee displays.


ERROR

public static final Message.Type ERROR
indicates a messaging error.

Method Detail

fromString

public static Message.Type fromString(String type)
Converts a String value into its Type representation.

Parameters:
type - the String value.
Returns:
the Type corresponding to the String.

toString

public String toString()
Overrides:
toString in class Object

Smack

Copyright © 2003 Jive Software.