org.sape.smfw.message
Class CompositeMessage

java.lang.Object
  extended byorg.sape.smfw.message.Message
      extended byorg.sape.smfw.message.CompositeMessage
All Implemented Interfaces:
Serializable

public class CompositeMessage
extends Message

A message consisting of child messages. This class is part of the Message "Composite" pattern.

See Also:
Serialized Form

Field Summary
protected  List messageList
          List of child messages
 
Fields inherited from class org.sape.smfw.message.Message
parent
 
Constructor Summary
CompositeMessage()
          Constructor for CompositeMessage.
 
Method Summary
 void addChild(Message message)
          Adds the supplied message as a child of this message.
 List getMessageList()
          Returns the messageList.
 Iterator iterator()
          Returns an iterator on the child messages.
 void setMessageList(List messageList)
          Sets the messageList.
 
Methods inherited from class org.sape.smfw.message.Message
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageList

protected List messageList
List of child messages

Constructor Detail

CompositeMessage

public CompositeMessage()
Constructor for CompositeMessage.

Method Detail

getMessageList

public List getMessageList()
Returns the messageList.

Returns:
List

setMessageList

public void setMessageList(List messageList)
Sets the messageList.

Parameters:
messageList - The messageList to set

addChild

public void addChild(Message message)
Description copied from class: Message
Adds the supplied message as a child of this message.

Overrides:
addChild in class Message
Parameters:
message - the message to be added as a child
See Also:
Message.addChild(Message)

iterator

public Iterator iterator()
Description copied from class: Message
Returns an iterator on the child messages. Since a Message object has no children, this implementation returns an empty iterator.

Overrides:
iterator in class Message
Returns:
Iterator on the child messages
See Also:
Message.iterator()


Copyright 2003 Sapient Corporation. All Rights Reserved.