public class

SimpleFormErrors

extends Object
implements FormErrors
java.lang.Object
   ↳ com.atlassian.bitbucket.validation.SimpleFormErrors

Class Overview

Simple implementation of FormErrors as a plain Java object with a builder,

Summary

Nested Classes
class SimpleFormErrors.Builder  
Public Methods
@Nonnull Collection<String> getErrors(String field)
@Nonnull Map<String, Collection<String>> getFieldErrors()
@Nonnull Collection<String> getFormErrors()
boolean isEmpty()
Indicates whether this instance of errors is empty, or has any errors.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bitbucket.validation.FormErrors

Public Methods

@Nonnull public Collection<String> getErrors (String field)

@Nonnull public Map<String, Collection<String>> getFieldErrors ()

@Nonnull public Collection<String> getFormErrors ()

public boolean isEmpty ()

Indicates whether this instance of errors is empty, or has any errors.

Returns
  • true, if this instance of FormErrors contains no errors of any type, false otherwise