|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbind.message.AbstractMessage org.jbind.message.DecoratedMessage
Constructor Summary | |
DecoratedMessage(IMessageFormats aMessageFormats,
java.lang.String aKey,
java.lang.Object[] aParams,
IMessage aMessage)
|
Method Summary | |
void |
addTo(ICompositeMessage aCompositeMessage)
Adds this message as a sub message to the specified composite message. |
java.lang.Object |
getParameters(java.util.Locale aLocale)
|
boolean |
isComposite()
Indicates if the message is a composite message. |
boolean |
isEmpty()
Checks for emptiness. |
java.util.Iterator |
iterSimpleMessages()
Iterates all simple messages contained in the message. |
java.util.Iterator |
iterSubMessages()
Iterates the sub-messages of this message. |
Methods inherited from class org.jbind.message.AbstractMessage |
getOrigin, output, output, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DecoratedMessage(IMessageFormats aMessageFormats, java.lang.String aKey, java.lang.Object[] aParams, IMessage aMessage)
aMessageFormats
- (required). Contains the message format that
is used for the decoration.aKey
- (required). The key of the message format that is used
for decoration.aParams
- (optional). Parameters that may be inserted into the
decorating message format.aMessage
- (required). The message that is decorated. The
output of the message can be accessed as the 0th parameter in the decorating
message format.Method Detail |
public boolean isEmpty()
IMessage
true
iff this message is empty.public boolean isComposite()
IMessage
true
iff the message is a composite message.public java.util.Iterator iterSubMessages()
IMessage
public java.util.Iterator iterSimpleMessages()
IMessage
IMessage
.public java.lang.Object getParameters(java.util.Locale aLocale)
getParameters
in class AbstractMessage
public void addTo(ICompositeMessage aCompositeMessage)
IMessage
aCompositeMessage
- (required). The composite messages to which
sub messages are added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |