|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.x1seven.hydrogen.validation.Messages
public class Messages
Collection of Message objects generated by validate() methods.
| Field Summary | |
|---|---|
static java.lang.String |
GLOBAL_MESSAGE
The key to use for Message objects that pertain to the whole
request, not just to a specific property. |
| Constructor Summary | |
|---|---|
Messages()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.String property,
Message message)
Adds a Message to the collection for the specified property. |
int |
count()
Returns the number of messages contained by this Messages object. |
java.util.Iterator |
get()
Returns an Iterator for all Message objects that were added to
the collection. |
java.util.Iterator |
get(java.lang.String property)
Returns an Iterator for the Message objects that relate to the
specified property, or an empty Iterator if there are none. |
boolean |
hasMessages()
Indicates if the Messages object has any Message objects in it. |
boolean |
isEmpty()
Indicates if the Messages object is empty. |
java.util.Iterator |
propertyNames()
Returns an Iterator for all the property names for which at least one Message has been registered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String GLOBAL_MESSAGE
The key to use for Message objects that pertain to the whole
request, not just to a specific property.
| Constructor Detail |
|---|
public Messages()
| Method Detail |
|---|
public void add(java.lang.String property,
Message message)
Adds a Message to the collection for the specified property.
property - the property name against which the
Message should be storedmessage - the Message to registerpublic java.util.Iterator propertyNames()
Returns an Iterator for all the property names for which at least one
Message has been registered.
public java.util.Iterator get()
Returns an Iterator for all Message objects that were added to
the collection.
public java.util.Iterator get(java.lang.String property)
Returns an Iterator for the Message objects that relate to the
specified property, or an empty Iterator if there are none.
property - the property to retrieve Message objects
for
public int count()
Returns the number of messages contained by this Messages object.
public boolean hasMessages()
Indicates if the Messages object has any Message objects in it.
public boolean isEmpty()
Indicates if the Messages object is empty.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||