|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.addin.Message
The Message
class is the base class for messages send to an
Observer
to notify it about a Subject
pending change and
past change.
An update message consists of four lists: add
,
remove
, modify
, and container
lists. A subject simply includes all applicable change information
in one or more update messages.
Observer
,
Subject
Field Summary | |
protected java.util.List |
add
Lists new object creations that may have ocurred during a subject change |
protected java.util.List |
container
Lists the parents of objects recorded in add, remove, and/or modify lists |
protected Context |
context
Holds the context under which notification is taking place. |
protected java.lang.Object |
extraData
Holds a reference to arbitrary user data associated with this message. |
protected int |
messageID
records the message id |
protected java.util.List |
modify
Lists object modifications that may have ocurred during a subject change |
protected java.lang.Object |
origin
records the Object which originated the message |
protected java.util.List |
remove
Lists object deletions that may have ocurred during a subject change |
Constructor Summary | |
Message(int messageID,
java.lang.Object origin)
Constructs an update message of the specified message id. |
Method Summary | |
java.util.List |
getAddObjects()
Retrieves the list of objects added during a Subject change. |
Context |
getContext()
Get the context under which notification is taking place. |
java.lang.Object |
getExtraData()
Get the user data associated with this message. |
int |
getMessageID()
Retrieves the message identifier. |
java.util.List |
getModifyObjects()
Retrieves the list of objects modified during a Subject
change. |
java.lang.Object |
getOrigin()
Retrieves the originator of the message. |
java.util.List |
getRemoveObjects()
Retrieves the list of objects removed during a Subject change. |
void |
setContext(Context context)
Set the context under which notification is taking place. |
void |
setExtraData(java.lang.Object extraData)
Set the user data to be associated with this message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int messageID
protected java.lang.Object origin
protected java.util.List add
protected java.util.List remove
protected java.util.List modify
protected java.util.List container
protected Context context
protected java.lang.Object extraData
Constructor Detail |
public Message(int messageID, java.lang.Object origin)
origin
- the Object which originated this message. Usually an
Observer.messageID
- the message identifier.Method Detail |
public int getMessageID()
public java.lang.Object getOrigin()
public java.util.List getAddObjects()
Subject
change.
Subject
change.public java.util.List getRemoveObjects()
Subject
change.
Subject
change.public java.util.List getModifyObjects()
Subject
change.
Subject
change.public Context getContext()
public void setContext(Context context)
public java.lang.Object getExtraData()
public void setExtraData(java.lang.Object extraData)
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.