public interface ValidationAware
| Modifier and Type | Method and Description | 
|---|---|
void | 
addActionError(String anErrorMessage)
Add an Action-level error message to this Action. 
 | 
void | 
addActionMessage(String aMessage)
Add an Action-level message to this Action. 
 | 
void | 
addFieldError(String fieldName,
             String errorMessage)
Add an error message for a given field. 
 | 
Collection<String> | 
getActionErrors()
Get the Collection of Action-level error messages for this action. 
 | 
Collection<String> | 
getActionMessages()
Get the Collection of Action-level messages for this action. 
 | 
Map<String,List<String>> | 
getFieldErrors()
Get the field specific errors associated with this action. 
 | 
boolean | 
hasActionErrors()
Check whether there are any Action-level error messages. 
 | 
boolean | 
hasActionMessages()
Checks whether there are any Action-level messages. 
 | 
boolean | 
hasErrors()
Checks whether there are any action errors or field errors. 
 | 
boolean | 
hasFieldErrors()
Check whether there are any field errors associated with this action. 
 | 
void | 
setActionErrors(Collection<String> errorMessages)
Set the Collection of Action-level String error messages. 
 | 
void | 
setActionMessages(Collection<String> messages)
Set the Collection of Action-level String messages (not errors). 
 | 
void | 
setFieldErrors(Map<String,List<String>> errorMap)
Set the field error map of fieldname (String) to Collection of String error messages. 
 | 
void setActionErrors(Collection<String> errorMessages)
errorMessages - Collection of String error messagesCollection<String> getActionErrors()
void setActionMessages(Collection<String> messages)
messages - Collection of String messages (not errors).Collection<String> getActionMessages()
void setFieldErrors(Map<String,List<String>> errorMap)
errorMap - field error mapMap<String,List<String>> getFieldErrors()
void addActionError(String anErrorMessage)
anErrorMessage - the error messagevoid addActionMessage(String aMessage)
aMessage - the messagevoid addFieldError(String fieldName, String errorMessage)
fieldName - name of fielderrorMessage - the error messageboolean hasActionErrors()
boolean hasActionMessages()
boolean hasErrors()
(hasActionErrors() || hasFieldErrors())boolean hasFieldErrors()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.