Coalevo Logo

net.coalevo.messaging.model
Class InteractiveMessageTypes

java.lang.Object
  extended by net.coalevo.messaging.model.InteractiveMessageTypes

public class InteractiveMessageTypes
extends java.lang.Object

Provides all defined InteractiveMessageTypes.

Version:
1.0.0 (10/02/2009)
Author:
Dieter Wimberger (wimpi)

Field Summary
static InteractiveMessageType CHAT
          Defines an InteractiveMessageType for a chat message.
static InteractiveMessageType GROUPCHAT
          Defines an InteractiveMessageType for a message in a group chat.
protected static java.util.Set<InteractiveMessageType> INTERACTIVEMESSAGE_TYPES
          Set holding the defined InteractiveMessageType instances.
static InteractiveMessageType NEWS
          Defines an InteractiveMessageType for a message that is giving some news.
static InteractiveMessageType NOTIFICATION
          Defines an InteractiveMessageType for a message that is notifying the user of something.
static InteractiveMessageType OFFLINE
          Defines an InteractiveMessageType for an offline message.
static InteractiveMessageType QUESTION
          Defines an InteractiveMessageType for a message that is a question from a user to a system guide.
protected static InteractiveMessageType[] TYPES
          Array holding the defined InteractiveMessageType instances.
 
Constructor Summary
InteractiveMessageTypes()
           
 
Method Summary
static InteractiveMessageType get(java.lang.String identifier)
          Returns a InteractiveMessageType instance for the given identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHAT

public static final InteractiveMessageType CHAT
Defines an InteractiveMessageType for a chat message. The context of a InteractiveMessage of this type is a thread or the sender/address.


GROUPCHAT

public static final InteractiveMessageType GROUPCHAT
Defines an InteractiveMessageType for a message in a group chat. The context of this message is the group.


NEWS

public static final InteractiveMessageType NEWS
Defines an InteractiveMessageType for a message that is giving some news. This message does not require a reply and will likely be produced automatically by some service.


OFFLINE

public static final InteractiveMessageType OFFLINE
Defines an InteractiveMessageType for an offline message. The context of a InteractiveMessage of this type is a thread or the sender/address, but the message may have been stored on the server for a while.


NOTIFICATION

public static final InteractiveMessageType NOTIFICATION
Defines an InteractiveMessageType for a message that is notifying the user of something. This message will not require a reply, and will likely be produced by some service of the system.


QUESTION

public static final InteractiveMessageType QUESTION
Defines an InteractiveMessageType for a message that is a question from a user to a system guide.


TYPES

protected static final InteractiveMessageType[] TYPES
Array holding the defined InteractiveMessageType instances.


INTERACTIVEMESSAGE_TYPES

protected static final java.util.Set<InteractiveMessageType> INTERACTIVEMESSAGE_TYPES
Set holding the defined InteractiveMessageType instances.

Constructor Detail

InteractiveMessageTypes

public InteractiveMessageTypes()
Method Detail

get

public static final InteractiveMessageType get(java.lang.String identifier)
                                        throws java.util.NoSuchElementException
Returns a InteractiveMessageType instance for the given identifier.

Parameters:
identifier - a string identifying a InteractiveMessageType.
Returns:
the InteractiveMessageType with the given identifier.
Throws:
java.util.NoSuchElementException - if a InteractiveMessageType with the given identifier does not exist.

Coalevo Logo

(c) 2004-2009 VFI (http://www.vfi.or.at)