|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.AbstractExtensibleMessage
org.objectweb.dream.message.BasicExtensibleMessage
Implementation of extensible message, using a LinkedList
to
store sub message
Field Summary |
Fields inherited from class org.objectweb.dream.message.AbstractExtensibleMessage |
chunkNames, chunks, chunkTypes, messageManagerId |
Fields inherited from interface org.objectweb.dream.message.Message |
EMPTY_MESSAGE_ARRAY |
Fields inherited from interface org.objectweb.dream.message.MessageType |
EMPTY_MESSAGE_TYPE_ARRAY |
Fields inherited from interface org.objectweb.dream.util.EmptyStringArray |
EMPTY_STRING_ARRAY |
Constructor Summary | |
BasicExtensibleMessage(short messageManagerId)
Constructor. |
Method Summary | |
void |
addSubMessage(Message message)
Adds a sub message in this message. |
Iterator |
getSubMessageIterator()
Returns an Iterator that iterate over the sub messages of
this message. |
Message[] |
getSubMessages()
Returns an (eventually empty) array containing the sub messages of this message. |
MessageType[] |
getSubMessageTypes()
Returns an (eventually empty) array containing the types of the sub messages of messages of this type. |
Iterator |
getSubMessageTypesIterator()
Returns an iterator over the types of the sub messages of messages of this type. |
boolean |
isSubTypeOf(MessageType t)
Returns true if this message type if a sub type of the given
message type. |
boolean |
removeSubMessage(Message msg)
Removes the specified sub message. |
Methods inherited from class org.objectweb.dream.message.AbstractExtensibleMessage |
addChunk, decrementReferenceCounter, getChunk, getChunkNames, getChunkNamesIterator, getChunkType, getMessageManagerId, getMessageType, incrementReferenceCounter, isEmpty, recycle, removeChunk, setMessageManagerId, transfertChunkStates |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicExtensibleMessage(short messageManagerId)
messageManagerId
- the id of the message manager that creates this
message.Method Detail |
public void addSubMessage(Message message)
ExtensibleMessage
message
- the message to add.ExtensibleMessage.addSubMessage(Message)
public boolean removeSubMessage(Message msg)
ExtensibleMessage
msg
- the message to be removed.
true
if the message has been removed,
false
otherwise.ExtensibleMessage.removeSubMessage(Message)
public Iterator getSubMessageIterator()
Message
Iterator
that iterate over the sub messages of
this message.
Message.getSubMessageIterator()
public Message[] getSubMessages()
Message
Message.getSubMessages()
public MessageType[] getSubMessageTypes()
MessageType
MessageType.getSubMessageTypes()
public Iterator getSubMessageTypesIterator()
MessageType
MessageType.getSubMessageTypesIterator()
public boolean isSubTypeOf(MessageType t)
MessageType
true
if this message type if a sub type of the given
message type.
t
- a message type
true
if this message type if a sub type of the given
message type.MessageType.isSubTypeOf(MessageType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |