public class SimpleFormErrors extends Object implements FormErrors
FormErrors as a plain Java object with a builder,| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleFormErrors.Builder |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getErrors(String field) |
Map<String,Collection<String>> |
getFieldErrors() |
Collection<String> |
getFormErrors() |
boolean |
isEmpty()
Indicates whether this instance of errors is empty, or has any errors.
|
@Nonnull public Collection<String> getErrors(@Nonnull String field)
getErrors in interface FormErrorsfield - that potentially contains some errors@Nonnull public Map<String,Collection<String>> getFieldErrors()
getFieldErrors in interface FormErrors@Nonnull public Collection<String> getFormErrors()
getFormErrors in interface FormErrorspublic boolean isEmpty()
FormErrorsisEmpty in interface FormErrorstrue, if this instance of FormErrors contains no errors of any type,
false otherwiseCopyright © 2021 Atlassian. All rights reserved.