A C G H I M P S V

A

ActionMessagesConverter - Class in com.x1seven.hydrogen.validation
Converts a Messages collection to the equivalent Struts ActionMessages collection.
ActionMessagesConverter() - Constructor for class com.x1seven.hydrogen.validation.ActionMessagesConverter
 
add(String, Message) - Method in class com.x1seven.hydrogen.validation.Messages
Adds a Message to the collection for the specified property.

C

com.x1seven.hydrogen.validation - package com.x1seven.hydrogen.validation
 
convert(Messages) - Method in class com.x1seven.hydrogen.validation.ActionMessagesConverter
Creates and returns an equivalent Struts ActionMessages collection for the supplied Messages collection.
convert(Message) - Method in class com.x1seven.hydrogen.validation.ActionMessagesConverter
Creates and returns an equivalent Struts ActionMessage for the supplied Message object.
count() - Method in class com.x1seven.hydrogen.validation.Messages
Returns the number of messages contained by this Messages object.
count() - Method in exception com.x1seven.hydrogen.validation.ValidationException
Convenience method to return the number of messages in this ValidationException.

G

get() - Method in class com.x1seven.hydrogen.validation.Messages
Returns an Iterator for all Message objects that were added to the collection.
get(String) - Method in class com.x1seven.hydrogen.validation.Messages
Returns an Iterator for the Message objects that relate to the specified property, or an empty Iterator if there are none.
get() - Method in exception com.x1seven.hydrogen.validation.ValidationException
Convenience method to get the iterator for the full collection of Messages held by this ValidationException.
get(String) - Method in exception com.x1seven.hydrogen.validation.ValidationException
Convenience method to get an iterator for the Message objects that have been registered against the specified property.
getKey() - Method in class com.x1seven.hydrogen.validation.Message
 
getMessages() - Method in exception com.x1seven.hydrogen.validation.ValidationException
Retrieves the Messages collection that contains the actual messages for this ValidationException.
getValues() - Method in class com.x1seven.hydrogen.validation.Message
 
GLOBAL_MESSAGE - Static variable in class com.x1seven.hydrogen.validation.Messages
The key to use for Message objects that pertain to the whole request, not just to a specific property.

H

hasMessages() - Method in class com.x1seven.hydrogen.validation.Messages
Indicates if the Messages object has any Message objects in it.
hasMessages() - Method in exception com.x1seven.hydrogen.validation.ValidationException
Convenience method to find out if the Messages collection held by this ValidationException contains objects.

I

isEmpty() - Method in class com.x1seven.hydrogen.validation.Messages
Indicates if the Messages object is empty.
isEmpty() - Method in exception com.x1seven.hydrogen.validation.ValidationException
Convenience method to find out if the Messages collection held by this ValidationException is empty.
isResource() - Method in class com.x1seven.hydrogen.validation.Message
 

M

Message - Class in com.x1seven.hydrogen.validation
Represents a single validation error message generated by a validate() method on a Validator object.
Message(String) - Constructor for class com.x1seven.hydrogen.validation.Message
Construct an action message with the supplied key to be used as resource key.
Message(String, boolean) - Constructor for class com.x1seven.hydrogen.validation.Message
Construct an action message with the supplied key to be used as a literal message.
Message(String, Object) - Constructor for class com.x1seven.hydrogen.validation.Message
Construct an action message with the supplied key to be used as a literal message.
Message(String, Object, Object) - Constructor for class com.x1seven.hydrogen.validation.Message
Construct an action message with the supplied key to be used as a literal message.
Message(String, Object, Object, Object) - Constructor for class com.x1seven.hydrogen.validation.Message
Construct an action message with the supplied key to be used as a literal message.
Message(String, Object, Object, Object, Object) - Constructor for class com.x1seven.hydrogen.validation.Message
Construct an action message with the supplied key to be used as a literal message.
Message(String, Object[]) - Constructor for class com.x1seven.hydrogen.validation.Message
Construct an action message with the supplied key to be used as a literal message.
Messages - Class in com.x1seven.hydrogen.validation
Collection of Message objects generated by validate() methods.
Messages() - Constructor for class com.x1seven.hydrogen.validation.Messages
 

P

propertyNames() - Method in class com.x1seven.hydrogen.validation.Messages
Returns an Iterator for all the property names for which at least one Message has been registered.

S

setMessages(Messages) - Method in exception com.x1seven.hydrogen.validation.ValidationException
Sets the Messages collection for this ValidationException.

V

ValidationException - Exception in com.x1seven.hydrogen.validation
Indicates that one or more rules failed during validation.
ValidationException() - Constructor for exception com.x1seven.hydrogen.validation.ValidationException
Constructs a new empty ValidationException.
ValidationException(Messages) - Constructor for exception com.x1seven.hydrogen.validation.ValidationException
Constructs a new ValidationException containing the supplied Messages collection.

A C G H I M P S V