|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjform.Messages
public class Messages
Container for messages in a set of properties.
| Field Summary | |
|---|---|
static java.lang.String |
ERROR_KEY
|
static java.lang.String |
GLOBAL_ERROR
The property for global error messages. |
static java.lang.String |
GLOBAL_MESSAGE
The property for global messages. |
static java.lang.String |
MESSAGE_KEY
|
| Constructor Summary | |
|---|---|
Messages()
Creates a new message container. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String property,
Message msg)
Add a message to the set of messages for the specified property. |
void |
addError(java.lang.String messageId,
java.lang.Object... params)
Adds an error message to the set of global messages. |
void |
addSuccess(java.lang.String messageId,
java.lang.Object... params)
Adds a success message to the set of global messages. |
void |
clear()
Clear all messages recorded by this object. |
void |
clearMessage(java.lang.String property,
java.lang.String msgKey)
Removes a specific message for the given property. |
java.util.Iterator<Message> |
get()
|
java.util.Iterator<Message> |
get(java.lang.String property)
Return the set of messages related to a specific property. |
java.util.Iterator<java.lang.String> |
getProperties()
Return the set of property names for which at least one message has been recorded. |
boolean |
isEmpty()
Return true if there are no messages recorded in this object,
or false otherwise. |
int |
size()
Return the number of messages recorded for all properties (including global messages). |
int |
size(java.lang.String property)
Return the number of messages associated with the specified property. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ERROR_KEY
public static final java.lang.String MESSAGE_KEY
public static final java.lang.String GLOBAL_MESSAGE
public static final java.lang.String GLOBAL_ERROR
| Constructor Detail |
|---|
public Messages()
| Method Detail |
|---|
public void add(java.lang.String property,
Message msg)
public void addError(java.lang.String messageId,
java.lang.Object... params)
public void addSuccess(java.lang.String messageId,
java.lang.Object... params)
public void clear()
public void clearMessage(java.lang.String property,
java.lang.String msgKey)
public java.util.Iterator<java.lang.String> getProperties()
public java.util.Iterator<Message> get()
public java.util.Iterator<Message> get(java.lang.String property)
public boolean isEmpty()
true if there are no messages recorded in this object,
or false otherwise.
public int size()
public int size(java.lang.String property)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||