|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.diagram.MessageData
public class MessageData
A MessageData object encapsulates all data characterizing a message that is displayed by a sequence diagram.
| Constructor Summary | |
|---|---|
MessageData()
|
|
| Method Summary | |
|---|---|
String |
getAnswer()
|
int |
getAnswerNoteNumber()
|
int |
getBroadcastType()
Returns an integer number indicating if this MessageData specifies a message from the sender of a broadcast message to a single receiver. |
String |
getCallee()
|
String |
getCalleeMnemonic()
Returns a mnemonic for the callee object, if one is defined in this message, otherwise an empty string. |
String[] |
getCallees()
Returns an array of length at least 2 if this MessageData specifies a BroadcastMessage, otherwise an empty array. |
String |
getCaller()
|
String |
getCallerMnemonic()
Returns the mnemonic identifying this message's caller object, if there is such a mnemonic, otherwise an empty string. |
int |
getLevel()
|
String |
getMessage()
|
int |
getNoteNumber()
|
String |
getProperty(String propertyName)
|
int |
getThread()
|
boolean |
isDestroyMessage()
Returns true if the message starts with "destroy(" or if it equals "destroy" |
boolean |
isNewMessage()
Returns true if the message starts with "new(" or if it equals "new" |
boolean |
isSpawnMessage()
|
boolean |
returnsInstantly()
|
void |
setAnswer(String answer)
|
void |
setAnswerNoteNumber(int answerNoteNumber)
|
void |
setBroadcastType(int broadcastType)
Sets an integer number indicating if this MessageData specifies a message from the sender of a broadcast message to a single receiver. |
void |
setCallee(String callee)
|
void |
setCalleeMnemonic(String calleeMnemonic)
Sets a mnemonic for the callee object. |
void |
setCallees(String[] callees)
|
void |
setCaller(String caller)
|
void |
setCallerMnemonic(String callerMnemonic)
Sets the mnemonic identifying this message's caller object. |
void |
setLevel(int level)
|
void |
setMessage(String message)
|
void |
setNoteNumber(int number)
|
void |
setProperties(String properties)
|
void |
setProperty(String name,
String value)
|
void |
setReturnsInstantly(boolean on)
|
void |
setSpawnMessage(boolean spawnMessage)
|
void |
setThread(int thread)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageData()
| Method Detail |
|---|
public boolean isNewMessage()
public void setProperties(String properties)
public void setProperty(String name,
String value)
public String getProperty(String propertyName)
public boolean isDestroyMessage()
public String getAnswer()
public void setAnswer(String answer)
answer - the answer to setpublic String getCallee()
public void setCallee(String callee)
callee - the callee to setpublic String getCaller()
public void setCaller(String caller)
caller - the caller to setpublic int getLevel()
public void setLevel(int level)
level - the level to setpublic void setNoteNumber(int number)
public int getNoteNumber()
public String getMessage()
public void setMessage(String message)
message - the message to setpublic boolean isSpawnMessage()
public void setSpawnMessage(boolean spawnMessage)
spawnMessage - the spawnMessage to setpublic int getThread()
public void setThread(int thread)
thread - the thread to setpublic String getCalleeMnemonic()
public void setCalleeMnemonic(String calleeMnemonic)
calleeMnemonic - a mnemonic for the callee objectpublic String getCallerMnemonic()
public void setCallerMnemonic(String callerMnemonic)
callerMnemonic - the mnemonic identifying this message's caller objectpublic void setReturnsInstantly(boolean on)
public boolean returnsInstantly()
public int getAnswerNoteNumber()
public void setAnswerNoteNumber(int answerNoteNumber)
public String[] getCallees()
public void setCallees(String[] callees)
public int getBroadcastType()
| value | interpretation |
|---|---|
| 0 | not a part of a broadcast |
| 1 | the first part of a broadcast |
| 2 | a part of a broadcast, but neither the first nor the last |
| 3 | the last part of a broadcast |
public void setBroadcastType(int broadcastType)
| value | interpretation |
|---|---|
| 0 | not a part of a broadcast |
| 1 | the first part of a broadcast |
| 2 | a part of a broadcast, but neither the first nor the last |
| 3 | the last part of a broadcast |
broadcastType - an integer number indicating if this MessageData
specifies a message from the sender of a broadcast message to
a single receiver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||