|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.validator.DelegatingValidatorContext.LoggingValidationAware
private static class DelegatingValidatorContext.LoggingValidationAware
An implementation of ValidationAware which logs errors and messages.
| Field Summary | |
|---|---|
private Log |
log
|
| Constructor Summary | |
|---|---|
DelegatingValidatorContext.LoggingValidationAware(Class clazz)
|
|
DelegatingValidatorContext.LoggingValidationAware(Object obj)
|
|
| Method Summary | |
|---|---|
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 |
getActionErrors()
Get the Collection of Action-level error messages for this action. |
Collection |
getActionMessages()
Get the Collection of Action-level messages for this action. |
Map |
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()
Note that this does not have the same meaning as in WW 1.x. |
boolean |
hasFieldErrors()
Check whether there are any field errors associated with this action. |
void |
setActionErrors(Collection errorMessages)
Set the Collection of Action-level String error messages. |
void |
setActionMessages(Collection messages)
Set the Collection of Action-level String messages (not errors). |
void |
setFieldErrors(Map errorMap)
Set the field error map of fieldname (String) to Collection of String error messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Log log
| Constructor Detail |
|---|
public DelegatingValidatorContext.LoggingValidationAware(Class clazz)
public DelegatingValidatorContext.LoggingValidationAware(Object obj)
| Method Detail |
|---|
public void setActionErrors(Collection errorMessages)
ValidationAware
setActionErrors in interface ValidationAwarepublic Collection getActionErrors()
ValidationAware
getActionErrors in interface ValidationAwarepublic void setActionMessages(Collection messages)
ValidationAware
setActionMessages in interface ValidationAwarepublic Collection getActionMessages()
ValidationAware
getActionMessages in interface ValidationAwarepublic void setFieldErrors(Map errorMap)
ValidationAware
setFieldErrors in interface ValidationAwarepublic Map getFieldErrors()
ValidationAware
getFieldErrors in interface ValidationAwarepublic void addActionError(String anErrorMessage)
ValidationAware
addActionError in interface ValidationAwarepublic void addActionMessage(String aMessage)
ValidationAware
addActionMessage in interface ValidationAware
public void addFieldError(String fieldName,
String errorMessage)
ValidationAware
addFieldError in interface ValidationAwarefieldName - name of fielderrorMessage - the error messagepublic boolean hasActionErrors()
ValidationAware
hasActionErrors in interface ValidationAwarepublic boolean hasActionMessages()
ValidationAware
hasActionMessages in interface ValidationAwarepublic boolean hasErrors()
ValidationAware
hasErrors in interface ValidationAwarepublic boolean hasFieldErrors()
ValidationAware
hasFieldErrors in interface ValidationAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||