|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hdpagination.web.validate.ErrorMessages
public class ErrorMessages
Error message collection
| Constructor Summary | |
|---|---|
ErrorMessages()
|
|
| Method Summary | |
|---|---|
boolean |
addError(java.lang.String errorKey)
Add a ErrorMessage instance, which contains only key without message, to collection |
boolean |
addError(java.lang.String errorKey,
java.lang.String message)
Add a ErrorMessage instance, which contains both key and message, to collection |
boolean |
addErrorWithoutKey(java.lang.String errorMessage)
Add a ErrorMessage instance, which contains only message without key, to collection, This method for use in case it's not necessary to support multinational language feature to display error message. |
ErrorMessage |
getError(java.lang.String errorKey)
Get stored ErrorMessage instance by key |
java.util.List |
getErrors()
Return collection of ErrorMessage instance |
boolean |
hasErrors()
Check if collection contains any ErrorMessage instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorMessages()
| Method Detail |
|---|
public ErrorMessage getError(java.lang.String errorKey)
errorKey -
public boolean addError(java.lang.String errorKey)
errorKey -
public boolean addError(java.lang.String errorKey,
java.lang.String message)
errorKey - message -
public boolean addErrorWithoutKey(java.lang.String errorMessage)
errorMessage -
public boolean hasErrors()
public java.util.List getErrors()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||