public class ValidationErrors
extends org.springframework.validation.AbstractErrors
Errors
implementation for use in the events mechanism of Spring Data REST.Constructor and Description |
---|
ValidationErrors(java.lang.String name,
java.lang.Object entity,
EntityMetadata entityMetadata) |
Modifier and Type | Method and Description |
---|---|
void |
addAllErrors(org.springframework.validation.Errors errors) |
java.util.List<org.springframework.validation.FieldError> |
getFieldErrors() |
java.lang.Object |
getFieldValue(java.lang.String field) |
java.util.List<org.springframework.validation.ObjectError> |
getGlobalErrors() |
java.lang.String |
getObjectName() |
void |
reject(java.lang.String errorCode,
java.lang.Object[] errorArgs,
java.lang.String defaultMessage) |
void |
rejectValue(java.lang.String field,
java.lang.String errorCode,
java.lang.Object[] errorArgs,
java.lang.String defaultMessage) |
canonicalFieldName, doSetNestedPath, fixedField, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrorCount, getFieldErrorCount, getFieldErrors, getFieldType, getGlobalError, getGlobalErrorCount, getNestedPath, hasErrors, hasFieldErrors, hasFieldErrors, hasGlobalErrors, isMatchingFieldError, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toString
public ValidationErrors(java.lang.String name, java.lang.Object entity, EntityMetadata entityMetadata)
public java.lang.String getObjectName()
public void reject(java.lang.String errorCode, java.lang.Object[] errorArgs, java.lang.String defaultMessage)
public void rejectValue(java.lang.String field, java.lang.String errorCode, java.lang.Object[] errorArgs, java.lang.String defaultMessage)
public void addAllErrors(org.springframework.validation.Errors errors)
public java.util.List<org.springframework.validation.ObjectError> getGlobalErrors()
public java.util.List<org.springframework.validation.FieldError> getFieldErrors()
public java.lang.Object getFieldValue(java.lang.String field)