SimpleErrorCollection instead@Deprecated public class SimpleErrorCollectionInternal extends Object implements ErrorCollection
| Constructor and Description |
|---|
SimpleErrorCollectionInternal()
Deprecated.
|
SimpleErrorCollectionInternal(Iterable<String> errors)
Deprecated.
|
SimpleErrorCollectionInternal(String... errors)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String field,
String message)
Deprecated.
Add a field-specific error message.
|
void |
addError(String prefix,
String field,
String message)
Deprecated.
Adds a new form validation error with a given prefix.
|
void |
addErrorCollection(ErrorCollection errors)
Deprecated.
Populate this ErrorCollection with general and field-specific errors.
|
String |
addErrorMessage(String message)
Deprecated.
Add error message relating to system state (not field-specific).
|
String |
addErrorMessage(String message,
Exception e)
Deprecated.
|
void |
addErrorMessages(Collection<String> incomingMessages)
Deprecated.
Append new error messages to those already collected.
|
void |
addErrors(Map<String,?> incomingErrors)
Deprecated.
Append new field-specific errors to those already collected.
|
void |
addFieldErrors(Map<String,List<String>> errors)
Deprecated.
Append new field-specific errors to those already collected.
|
boolean |
equals(Object o)
Deprecated.
|
Collection<String> |
getErrorMessages()
Deprecated.
Get all non field-specific error messages.
|
Map<String,List<String>> |
getErrors()
Deprecated.
Get all field-specific errors.
|
Map<String,List<String>> |
getFieldErrors()
Deprecated.
|
Collection<String> |
getFlushedErrorMessages()
Deprecated.
Get error messages, then get rid of them.
|
int |
getTotalErrors()
Deprecated.
|
boolean |
hasAnyErrors()
Deprecated.
Whether any errors (of any type - field-specific or otherwise) have been collected.
|
int |
hashCode()
Deprecated.
|
void |
setErrorMessages(Collection<String> errorMessages)
Deprecated.
Populate this ErrorCollection with a new set of messages (existing errors are lost).
|
String |
toString()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllErrorMessagespublic SimpleErrorCollectionInternal()
public SimpleErrorCollectionInternal(Iterable<String> errors)
public SimpleErrorCollectionInternal(String... errors)
public void addError(String field, String message)
ErrorCollectionaddError in interface ErrorCollectionfield - Field name, eg. "assignee"message - Error message.public String addErrorMessage(String message)
ErrorCollectionaddErrorMessage in interface ErrorCollectionmessage - Error message.public Collection<String> getErrorMessages()
ErrorCollectiongetErrorMessages in interface ErrorCollectionpublic void setErrorMessages(Collection<String> errorMessages)
ErrorCollectionsetErrorMessages in interface ErrorCollectionerrorMessages - List of error message Strings.public Collection<String> getFlushedErrorMessages()
ErrorCollectiongetFlushedErrorMessages in interface ErrorCollectionpublic Map<String,List<String>> getErrors()
ErrorCollectiongetErrors in interface ErrorCollectionpublic void addErrorCollection(@NotNull
ErrorCollection errors)
ErrorCollectionaddErrorCollection in interface ErrorCollectionerrors - ErrorCollection whose errors/messages we obtain.public void addErrorMessages(Collection<String> incomingMessages)
ErrorCollectionaddErrorMessages in interface ErrorCollectionincomingMessages - Collection of error strings.public String addErrorMessage(String message, Exception e)
addErrorMessage in interface ErrorCollectionpublic void addErrors(Map<String,?> incomingErrors)
ErrorCollectionaddErrors in interface ErrorCollectionincomingErrors - A Map from String field names, to String error messages, or Collections of
String error messages.public void addFieldErrors(@NotNull
Map<String,List<String>> errors)
ErrorCollectionaddFieldErrors in interface ErrorCollectionerrors - A Map from String field names, to String error messages, or Collections of
String error messages.public boolean hasAnyErrors()
ErrorCollectionhasAnyErrors in interface ErrorCollectiontrue if there are errors; false otherwise.public Map<String,List<String>> getFieldErrors()
getFieldErrors in interface ErrorCollectionpublic int getTotalErrors()
getTotalErrors in interface ErrorCollectionpublic void addError(String prefix, String field, String message)
ErrorCollectionaddError in interface ErrorCollectionprefix - The prefix of the field in . formfield - The id of the form element in errormessage - The error message to display to the userCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.