|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.genuine.organizer.Message
A message is part of the framework's messaging system and are intended to be sent to message channels. They consist of a command and an optional object that can hold arbitrary data.
MessageBus
Constructor Summary | |
Message(java.lang.String command)
Creates a new message with the given command, without a data object. |
|
Message(java.lang.String command,
java.lang.Object data)
Creates a new message with the given command and a data object. |
Method Summary | |
java.lang.String |
getCommand()
Returns the message's command. |
java.lang.Object |
getData()
Returns the optional data. |
boolean |
isCommand(java.lang.String command)
Compares this message's command string with the given command string and returns true only if they match. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Message(java.lang.String command)
public Message(java.lang.String command, java.lang.Object data)
Method Detail |
public boolean isCommand(java.lang.String command)
public java.lang.String getCommand()
public java.lang.Object getData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |