|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.BasicMessageType
org.objectweb.dream.message.BasicMessageTypeNC
Field Summary |
Fields inherited from class org.objectweb.dream.message.BasicMessageType |
chkNames, chunkTypes, EMPTY_MESSAGE_TYPE, subMessageTypes, subMessageTypesArray |
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 | |
BasicMessageTypeNC()
|
Method Summary | |
void |
addSubMessageType(String messageName,
MessageType messageType)
Adds a sub Message type |
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[] |
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. |
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. |
MessageType |
removeSubMessageType(String subMessageName)
Removes a sub message type |
Methods inherited from class org.objectweb.dream.message.BasicMessageType |
addChunkType, addSubMessageType, getChunkNames, getChunkNamesIterator, getChunkType, isEmpty, isSubTypeOf, removeChunkType, removeSubMessageType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.dream.message.MessageType |
getChunkNames, getChunkNamesIterator, getChunkType, isEmpty, isSubTypeOf |
Constructor Detail |
public BasicMessageTypeNC()
Method Detail |
public MessageType getSubMessageType(String name)
MessageTypeNC
getSubMessageType
in interface MessageTypeNC
name
- the name of one of the message types returned by
MessageTypeNC.getSubMessageNames()
.
null
if no sub message with the specified name
exists.MessageTypeNC.getSubMessageType(java.lang.String)
public String[] getSubMessageNames()
MessageTypeNC
getSubMessageNames
in interface MessageTypeNC
MessageTypeNC.getSubMessageNames()
public Iterator getSubMessageNamesIterator()
MessageTypeNC
getSubMessageNamesIterator
in interface MessageTypeNC
MessageTypeNC.getSubMessageNamesIterator()
public void addSubMessageType(String messageName, MessageType messageType) throws MessageAlreadyExistException
messageName
- the name of the sub message typemessageType
- the sub message type
MessageAlreadyExistException
- if this type already contains a sub
message type with the specified namepublic MessageType removeSubMessageType(String subMessageName)
subMessageName
- the name of the sub message type
null
if no sub message type
with the specified name exists.public MessageType[] getSubMessageTypes()
MessageType
getSubMessageTypes
in interface MessageType
getSubMessageTypes
in class BasicMessageType
MessageType.getSubMessageTypes()
public Iterator getSubMessageTypesIterator()
MessageType
getSubMessageTypesIterator
in interface MessageType
getSubMessageTypesIterator
in class BasicMessageType
MessageType.getSubMessageTypesIterator()
public MessageType[] getUnnamedSubMessageTypes()
MessageTypeNC
getUnnamedSubMessageTypes
in interface MessageTypeNC
MessageTypeNC.getUnnamedSubMessageTypes()
public Iterator getUnnamedSubMessageTypesIterator()
MessageTypeNC
getUnnamedSubMessageTypesIterator
in interface MessageTypeNC
MessageTypeNC.getUnnamedSubMessageTypesIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |