org.objectweb.dream.message
Interface ExtensibleMessageNC

All Superinterfaces:
ExtensibleMessage, Message, MessageNC, Recyclable
All Known Implementing Classes:
ExtensibleMessageNCImpl

public interface ExtensibleMessageNC
extends ExtensibleMessage, MessageNC


Field Summary
 
Fields inherited from interface org.objectweb.dream.message.Message
EMPTY_MESSAGE_ARRAY
 
Method Summary
 void addSubMessage(String name, Message message)
          Adds a sub message in this message
 Message removeSubMessage(String name)
          Removes and returns the sub message with the specified name.
 
Methods inherited from interface org.objectweb.dream.message.ExtensibleMessage
addChunk, addSubMessage, removeChunk, removeSubMessage, removeSubMessages
 
Methods inherited from interface org.objectweb.dream.message.Message
getChunk, getMessageManagerId, getMessageType, getSubMessageIterator, getSubMessages, setMessageManagerId, transfertChunkStates
 
Methods inherited from interface org.objectweb.dream.pool.Recyclable
recycle
 
Methods inherited from interface org.objectweb.dream.message.MessageNC
getSubMessage, getUnnamedSubMessageIterator, getUnnamedSubMessages
 

Method Detail

addSubMessage

public void addSubMessage(String name,
                          Message message)
                   throws MessageAlreadyExistException
Adds a sub message in this message

Parameters:
name - the name of this new sub message.
message - the message to add.
Throws:
MessageAlreadyExistException - if this message has already an enclosed message with the same name

removeSubMessage

public Message removeSubMessage(String name)
Removes and returns the sub message with the specified name.

Parameters:
name - the name of the enclosed message to remove.
Returns:
the removed message or null if no sub message with the specified name is found.


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.