|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A message type is a collection of pairs (name,
ChunkType
) and sub message types.
Field Summary | |
static MessageType[] |
EMPTY_MESSAGE_TYPE_ARRAY
An empty MessageType array constant. |
Method Summary | |
String[] |
getChunkNames()
Returns an (eventually empty) array containing the chunk's names of messages of this type. |
Iterator |
getChunkNamesIterator()
Returns an iterator over the chunk's names of messages of this type. |
ChunkType |
getChunkType(String name)
Returns a chunk type of this message type from its 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. |
boolean |
isEmpty()
Returns true if this message type is empty (ie : does not
contains any chunk types and any sub message types) |
boolean |
isSubTypeOf(MessageType t)
Returns true if this message type if a sub type of the given
message type. |
Field Detail |
public static final MessageType[] EMPTY_MESSAGE_TYPE_ARRAY
MessageType
array constant. This constant should be
used by classes requiring an empty MessageType
array.
Method Detail |
public ChunkType getChunkType(String name)
name
- the name of one of the chunk types returned by
getChunkNames()
.
null
if no chunk with the specified name can be
found.public String[] getChunkNames()
public Iterator getChunkNamesIterator()
public MessageType[] getSubMessageTypes()
public Iterator getSubMessageTypesIterator()
public boolean isEmpty()
true
if this message type is empty (ie : does not
contains any chunk types and any sub message types)
true
if this message type is emptypublic boolean isSubTypeOf(MessageType t)
true
if this message type if a sub type of the given
message type.
t
- a message type
true
if this message type if a sub type of the given
message type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |