public class FormErrors extends Object
| Constructor and Description |
|---|
FormErrors()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String strKey,
String strMessage)
Add error in the list
|
void |
addLastValue(String strKey,
Object lastValue)
Add last value to the map
|
Map<String,List<String>> |
getErrors()
Get the map errors
|
Object |
getLastValue(String strKey)
Get the last value from a given key
|
Map<String,Object> |
getLastValues()
Get the map last values
|
boolean |
hasError()
Check if there are errors
|
boolean |
hasError(String strKey)
Check if the given key has error
|
public boolean hasError()
public boolean hasError(String strKey)
strKey - the keypublic void addError(String strKey, String strMessage)
strKey - the keystrMessage - the messagepublic void addLastValue(String strKey, Object lastValue)
strKey - the keylastValue - the last valuepublic Map<String,Object> getLastValues()
Copyright © 2017 City of Paris. All rights reserved.