|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.AbstractNonExtensibleMessage
Basic implementation of a non-extensible message. This class is intended to
be extended by specific non-extensible message implementations. It implements
the Message
and
MessageType
interfaces.
Field Summary |
Fields inherited from interface org.objectweb.dream.message.Message |
EMPTY_MESSAGE_ARRAY |
Fields inherited from interface org.objectweb.dream.message.MessageType |
EMPTY_MESSAGE_TYPE_ARRAY |
Constructor Summary | |
AbstractNonExtensibleMessage()
|
Method Summary | |
boolean |
decrementReferenceCounter()
Decrements the reference counter of this message. |
Object |
getChunk(String name)
This class implements every chunk so it allways returns this. |
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. |
short |
getMessageManagerId()
Returns the id of the message manager that created this message. |
MessageType |
getMessageType()
Returns the type of this message. |
Iterator |
getSubMessageIterator()
Returns an Iterator that iterate over the sub messages of
this message. |
Message[] |
getSubMessages()
Allways returns Message.EMPTY_MESSAGE_ARRAY |
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. |
void |
incrementReferenceCounter()
Increments the reference counter of the message. |
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. |
void |
setMessageManagerId(short id)
Sets the id of the message manager that created this message. |
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.Message |
transfertChunkStates |
Methods inherited from interface org.objectweb.dream.pool.Recyclable |
recycle |
Constructor Detail |
public AbstractNonExtensibleMessage()
Method Detail |
public Object getChunk(String name)
getChunk
in interface Message
name
- the name of the chunk, as specified in the message type.
Message.getChunk(String)
public Message[] getSubMessages()
Message.EMPTY_MESSAGE_ARRAY
getSubMessages
in interface Message
Message.getSubMessages()
public Iterator getSubMessageIterator()
Message
Iterator
that iterate over the sub messages of
this message.
getSubMessageIterator
in interface Message
Message.getSubMessageIterator()
public MessageType getMessageType()
Message
getMessageType
in interface Message
Message.getMessageType()
public short getMessageManagerId()
Message
getMessageManagerId
in interface Message
Message.getMessageManagerId()
public void setMessageManagerId(short id)
Message
setMessageManagerId
in interface Message
id
- the id of the message manager that created this message.Message.setMessageManagerId(short)
public MessageType[] getSubMessageTypes()
MessageType
getSubMessageTypes
in interface MessageType
MessageType.getSubMessageTypes()
public Iterator getSubMessageTypesIterator()
MessageType
getSubMessageTypesIterator
in interface MessageType
MessageType.getSubMessageTypesIterator()
public boolean isEmpty()
MessageType
true
if this message type is empty (ie : does not
contains any chunk types and any sub message types)
isEmpty
in interface MessageType
true
if this message type is emptyMessageType.isEmpty()
public boolean isSubTypeOf(MessageType t)
MessageType
true
if this message type if a sub type of the given
message type.
isSubTypeOf
in interface MessageType
t
- a message type
true
if this message type if a sub type of the given
message type.MessageType.isSubTypeOf(MessageType)
public String[] getChunkNames()
MessageType
getChunkNames
in interface MessageType
MessageType.getChunkNames()
public Iterator getChunkNamesIterator()
MessageType
getChunkNamesIterator
in interface MessageType
MessageType.getChunkNamesIterator()
public ChunkType getChunkType(String name)
MessageType
getChunkType
in interface MessageType
name
- the name of one of the chunk types returned by
MessageType.getChunkNames()
.
null
if no chunk with the specified name can be
found.MessageType.getChunkType(String)
public void incrementReferenceCounter()
MessageReferenceCounter
incrementReferenceCounter
in interface MessageReferenceCounter
MessageReferenceCounter.incrementReferenceCounter()
public boolean decrementReferenceCounter()
MessageReferenceCounter
decrementReferenceCounter
in interface MessageReferenceCounter
true
if the reference counter is null.MessageReferenceCounter.decrementReferenceCounter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |