|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.iloader.node.validators.support.Messages
public class Messages
A bundle of Message
s that may be displayed to the end user.
Constructor Summary | |
---|---|
Messages()
Creates a new instance of this class. |
Method Summary | |
---|---|
void |
add(int severity,
java.lang.String message)
Creates a new message with the given severity and adds it to the bundle. |
void |
add(Message message)
Adds a Message object to the bundle. |
Message |
get(int index)
Retuns the Message at the given index. |
int |
size()
Returns the number of messages stored in this bundle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Messages()
Method Detail |
---|
public int size()
public Message get(int index)
index
- the index of the desired message
java.lang.IndexOutOfBoundsException
- if index is out of range (index < 0 || index >= size()).public void add(Message message)
message
- public void add(int severity, java.lang.String message)
severity
- message
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |