public class DefaultServiceCommandValidator extends Object implements ServiceCommandValidator
| Constructor and Description |
|---|
DefaultServiceCommandValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldValidationError(FieldValidationError fieldError)
Add a new field validation error.
|
void |
addFieldValidationError(String fieldName,
String messageKey)
Add a new validation error.
|
void |
addFieldValidationError(String fieldName,
String messageKey,
Object... messageArguments)
Add a new validation error.
|
void |
addValidationError(String messageKey,
Object... messageArguments)
Add a new validation error.
|
Collection<ValidationError> |
getValidationErrors()
Get all validation errors.
|
public final void addFieldValidationError(String fieldName, String messageKey)
addFieldValidationError in interface ServiceCommandValidatorfieldName - the field that is not validmessageKey - the i18n key for the validation error messagepublic final void addValidationError(String messageKey, Object... messageArguments)
addValidationError in interface ServiceCommandValidatormessageKey - the i18n key for the validation error messagemessageArguments - the arguments to be merged into the error messagepublic final void addFieldValidationError(String fieldName, String messageKey, Object... messageArguments)
addFieldValidationError in interface ServiceCommandValidatorfieldName - the field that is not validmessageKey - the i18n key for the validation error messagemessageArguments - the arguments to be merged into the error message.public void addFieldValidationError(FieldValidationError fieldError)
ServiceCommandValidatoraddFieldValidationError in interface ServiceCommandValidatorfieldError - the error to addpublic Collection<ValidationError> getValidationErrors()
ServiceCommandValidatorgetValidationErrors in interface ServiceCommandValidatorCopyright © 2003–2021 Atlassian. All rights reserved.