Class ValidationErrors
java.lang.Object
org.springframework.validation.AbstractErrors
org.springframework.validation.AbstractBindingResult
org.springframework.validation.AbstractPropertyBindingResult
org.springframework.data.rest.core.ValidationErrors
- All Implemented Interfaces:
Serializable
,BindingResult
,Errors
An
Errors
implementation for use in the events mechanism of Spring Data REST. Customizes actual field lookup
by using a PersistentPropertyAccessor
for actual value lookups.- Author:
- Jon Brisbin, Oliver Gierke
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.validation.BindingResult
MODEL_KEY_PREFIX
Fields inherited from interface org.springframework.validation.Errors
NESTED_PATH_SEPARATOR
-
Constructor Summary
ConstructorDescriptionValidationErrors
(Object source, PersistentEntities entities) Creates a newValidationErrors
instance for the given source object andPersistentEntity
. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.springframework.validation.AbstractPropertyBindingResult
canonicalFieldName, findEditor, formatFieldValue, getActualFieldValue, getCustomEditor, getFieldType, getPropertyEditorRegistry, initConversion
Methods inherited from class org.springframework.validation.AbstractBindingResult
addAllErrors, addError, equals, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrors, getFieldErrors, getFieldValue, getGlobalError, getGlobalErrors, getMessageCodesResolver, getModel, getObjectName, getRawFieldValue, getSuppressedFields, hasErrors, hashCode, recordFieldValue, recordSuppressedField, reject, rejectValue, resolveMessageCodes, resolveMessageCodes, setMessageCodesResolver
Methods inherited from class org.springframework.validation.AbstractErrors
doSetNestedPath, fixedField, getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, isMatchingFieldError, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.validation.Errors
getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath
-
Constructor Details
-
ValidationErrors
Creates a newValidationErrors
instance for the given source object andPersistentEntity
.- Parameters:
source
- the source object to gather validation errors on, must not be null.entities
- thePersistentEntities
for the given source instance, must not be null.
-
-
Method Details
-
getPropertyAccessor
- Specified by:
getPropertyAccessor
in classAbstractPropertyBindingResult
-
getTarget
- Specified by:
getTarget
in interfaceBindingResult
- Specified by:
getTarget
in classAbstractBindingResult
-