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, Florian Cramer
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.validation.BindingResult
MODEL_KEY_PREFIXFields inherited from interface org.springframework.validation.Errors
NESTED_PATH_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionValidationErrors(Object source, PersistentEntities entities) Creates a newValidationErrorsinstance 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, initConversionMethods 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, setMessageCodesResolverMethods inherited from class org.springframework.validation.AbstractErrors
doSetNestedPath, fixedField, getNestedPath, isMatchingFieldError, popNestedPath, pushNestedPath, setNestedPath, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.validation.Errors
failOnError, getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toString
-
Constructor Details
-
ValidationErrors
Creates a newValidationErrorsinstance for the given source object andPersistentEntity.- Parameters:
source- the source object to gather validation errors on, must not be null.entities- thePersistentEntitiesfor the given source instance, must not be null.
-
-
Method Details
-
getPropertyAccessor
- Specified by:
getPropertyAccessorin classAbstractPropertyBindingResult
-
getTarget
- Specified by:
getTargetin interfaceBindingResult- Specified by:
getTargetin classAbstractBindingResult
-