|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A message that can be output in several languages. A message can either be a simple message or a composite message.
Method Summary | |
void |
addTo(ICompositeMessage aCompositeMessage)
Adds this message as a sub message to the specified composite message. |
java.lang.String |
getOrigin()
|
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)
Outputs this message and all of its sub-messages. |
java.lang.String |
output(java.util.Locale aLocale,
boolean anIndent,
boolean anOutputContainerLines)
Outputs this message and all of its sub-messages. |
Method Detail |
public java.lang.String output(java.util.Locale aLocale)
If this message is a composite message then first a line is output for the
composite and then each sub-message is output on a line of its own that is
indented one tab relative to the line of the composite. This method
corresponds to calling output(aLocale, true, true)
.
aLocale
- (optional).
public java.lang.String output(java.util.Locale aLocale, boolean anIndent, boolean anOutputContainerLines)
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.
aLocale
- (optional).anIndent
- Determines if sub messages are indented or not.anOutputContainerLines
- Determines if a composite message outputs a
line for itself or if it outputs its sub messages only.
public boolean isEmpty()
true
iff this message is empty.public boolean isComposite()
true
iff the message is a composite message.public java.util.Iterator iterSubMessages()
public java.util.Iterator iterSimpleMessages()
IMessage
.public void addTo(ICompositeMessage aCompositeMessage)
aCompositeMessage
- (required). The composite messages to which
sub messages are added.public java.lang.String getOrigin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |