|
||||||||||
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.CompositeMessage
Constructor Summary | |
CompositeMessage(MessageFormats aMessageFormats,
java.lang.String aKey,
java.lang.Object aParameters)
|
Method Summary | |
void |
add(IMessage aMessage)
|
void |
addTo(ICompositeMessage aCompositeMessage)
Adds this message as a sub message to the specified composite message. |
protected 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. |
java.lang.String |
output(java.util.Locale aLocale,
boolean anIndent,
boolean anOutputContainerLines)
Outputs this message and all of its sub-messages. |
Methods inherited from class org.jbind.message.AbstractMessage |
getOrigin, output, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jbind.message.IMessage |
getOrigin, output |
Constructor Detail |
public CompositeMessage(MessageFormats aMessageFormats, java.lang.String aKey, java.lang.Object aParameters)
Method Detail |
protected java.lang.Object getParameters(java.util.Locale aLocale)
getParameters
in class AbstractMessage
public boolean isEmpty()
IMessage
isEmpty
in interface IMessage
true
iff this message is empty.public boolean isComposite()
IMessage
isComposite
in interface IMessage
true
iff the message is a composite message.public java.util.Iterator iterSubMessages()
IMessage
iterSubMessages
in interface IMessage
public java.util.Iterator iterSimpleMessages()
IMessage
iterSimpleMessages
in interface IMessage
IMessage
.public java.lang.String output(java.util.Locale aLocale, boolean anIndent, boolean anOutputContainerLines)
IMessage
Best efforts are undertaken that the message is output using the specified locale. However, if the message can not be output using the specified locale then another locale is used.
output
in interface IMessage
output
in class AbstractMessage
public void add(IMessage aMessage)
add
in interface ICompositeMessage
public void addTo(ICompositeMessage aCompositeMessage)
IMessage
addTo
in interface 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 |