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 FormErrors
field
- that potentially contains some errors@Nonnull public Map<String,Collection<String>> getFieldErrors()
getFieldErrors
in interface FormErrors
@Nonnull public Collection<String> getFormErrors()
getFormErrors
in interface FormErrors
public boolean isEmpty()
FormErrors
isEmpty
in interface FormErrors
true
, if this instance of FormErrors
contains no errors of any type,
false
otherwiseCopyright © 2022 Atlassian. All rights reserved.