public abstract class AbstractValidation extends Object implements Validation
| Constructor and Description |
|---|
AbstractValidation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String i18nKey,
String path)
Add an error message (i18nKey) for a specific json path
|
List<ErrorRest> |
getErrors()
Expose the identified errors
|
String |
getName()
An unique name to identify the validation implementation
|
void |
setName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidatepublic String getName()
getName in interface Validationpublic void setName(String name)
public void addError(String i18nKey, String path)
i18nKey - the validation error message as a key to internationalizepath - the json path that identify the wrong data in the submission. It could be as specific as a single
value in a multivalued attribute or general of a "whole" sectionCopyright © 2019 DuraSpace. All rights reserved.