org.objectweb.dream.message
Interface MessageTypeNC

All Superinterfaces:
MessageType
All Known Implementing Classes:
ExtensibleMessageNCImpl, MessageTypeNCImpl

public interface MessageTypeNC
extends MessageType

Extends the MessageType interface and allows sub message types to be retrieved using the sub message's name.

See Also:
MessageNC

Field Summary
 
Fields inherited from interface org.objectweb.dream.message.MessageType
EMPTY_MESSAGE_TYPE_ARRAY
 
Method Summary
 String[] getSubMessageNames()
          Returns an (eventually empty) array containing the sub message's names of messages of this type.
 Iterator getSubMessageNamesIterator()
          Returns an iterator over the sub message's names of messages of this type.
 MessageType getSubMessageType(String name)
          Returns the type of the sub message having the specified name.
 MessageType[] getUnnamedSubMessageTypes()
          Returns an (eventually empty) array containing the types of the unnamed sub messages of messages of this type.
 Iterator getUnnamedSubMessageTypesIterator()
          Returns an iterator over the types of the unnamed sub messages of messages of this type.
 
Methods inherited from interface org.objectweb.dream.message.MessageType
getChunkNames, getChunkNamesIterator, getChunkType, getSubMessageTypes, getSubMessageTypesIterator, isEmpty, isSubTypeOf
 

Method Detail

getSubMessageType

public MessageType getSubMessageType(String name)
Returns the type of the sub message having the specified name.

Parameters:
name - the name of one of the message types returned by getSubMessageNames().
Returns:
the type of the sub message having the specified name or null if no sub message with the specified name exists.

getSubMessageNames

public String[] getSubMessageNames()
Returns an (eventually empty) array containing the sub message's names of messages of this type.

Returns:
an array containing the sub message's names of messages of this type.

getSubMessageNamesIterator

public Iterator getSubMessageNamesIterator()
Returns an iterator over the sub message's names of messages of this type.

Returns:
an iterator over the sub message's names of messages of this type.

getUnnamedSubMessageTypes

public MessageType[] getUnnamedSubMessageTypes()
Returns an (eventually empty) array containing the types of the unnamed sub messages of messages of this type.

Returns:
an array containing the types of the unnamed sub messages of messages of this type.

getUnnamedSubMessageTypesIterator

public Iterator getUnnamedSubMessageTypesIterator()
Returns an iterator over the types of the unnamed sub messages of messages of this type.

Returns:
an iterator over the types of the unnamed sub messages of messages of this type.


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