org.fuin.jmsmvc4swing.jms
Class ResponseMessageType

java.lang.Object
  extended by org.fuin.jmsmvc4swing.jms.ResponseMessageType
All Implemented Interfaces:
MessageType

public final class ResponseMessageType
extends Object
implements MessageType

Response message send by the controller.


Field Summary
static ResponseMessageType FAILED
          Controller finished working on a method with an exception.
static ResponseMessageType PROGRESS
          Controller signaling progress.
static ResponseMessageType RESULT
          Controller sends result.
static ResponseMessageType STARTED
          Controller started working on a method.
static ResponseMessageType SUCCEDED
          Controller successfully finished working on a method.
 
Method Summary
static ResponseMessageType forName(String name)
          Returns the instance for a name.
static ResponseMessageType[] getAll()
          Returns a list of all kown instances.
 String getName()
          Name of the type.
static boolean isValid(String name)
          Returns if a give name is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STARTED

public static final ResponseMessageType STARTED
Controller started working on a method.


PROGRESS

public static final ResponseMessageType PROGRESS
Controller signaling progress.


RESULT

public static final ResponseMessageType RESULT
Controller sends result.


SUCCEDED

public static final ResponseMessageType SUCCEDED
Controller successfully finished working on a method.


FAILED

public static final ResponseMessageType FAILED
Controller finished working on a method with an exception.

Method Detail

getName

public final String getName()
Name of the type.

Specified by:
getName in interface MessageType
Returns:
Unique name.

isValid

public static boolean isValid(String name)
Returns if a give name is valid.

Parameters:
name - Type name.
Returns:
If the name is valid TRUE else FALSE.

forName

public static ResponseMessageType forName(String name)
Returns the instance for a name.

Parameters:
name - Name to get the (singleton) instance for.
Returns:
Instance.

getAll

public static ResponseMessageType[] getAll()
Returns a list of all kown instances.

Returns:
Copy of the internal instances list.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.