org.objectweb.dream.message
Interface ExtensibleMessageNC
- All Superinterfaces:
- ExtensibleMessage, Message, MessageNC, Recyclable
- All Known Implementing Classes:
- ExtensibleMessageNCImpl
- public interface ExtensibleMessageNC
- extends ExtensibleMessage, MessageNC
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.