public class ModelState extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_FIELD |
static String |
REQUEST_ATTRIBUTE_ID |
| Constructor and Description |
|---|
ModelState() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldError(String fieldName,
String message) |
void |
addModelError(String message) |
void |
clear() |
Map<String,List<String>> |
getErrors() |
String |
getForm() |
boolean |
isValid() |
boolean |
isValid(String fieldName) |
void |
remove(Function<String,Boolean> matcher) |
void |
remove(String... fieldNames) |
void |
setForm(String form) |
public static final String REQUEST_ATTRIBUTE_ID
public static final String MODEL_FIELD
Copyright © 2019. All rights reserved.