public class ValidationErrors
extends org.springframework.validation.AbstractPropertyBindingResult
Errors implementation for use in the events mechanism of Spring Data REST. Customizes actual field lookup
by using a PersistentPropertyAccessor for actual value lookups.| Constructor and Description |
|---|
ValidationErrors(Object source,
org.springframework.data.mapping.context.PersistentEntities entities)
Creates a new
ValidationErrors instance for the given source object and PersistentEntity. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.beans.ConfigurablePropertyAccessor |
getPropertyAccessor() |
Object |
getTarget() |
canonicalFieldName, findEditor, formatFieldValue, getActualFieldValue, getCustomEditor, getFieldType, getPropertyEditorRegistry, initConversionaddAllErrors, addError, equals, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrors, getFieldErrors, getFieldValue, getGlobalError, getGlobalErrors, getMessageCodesResolver, getModel, getObjectName, getRawFieldValue, getSuppressedFields, hasErrors, hashCode, recordSuppressedField, reject, rejectValue, resolveMessageCodes, resolveMessageCodes, setMessageCodesResolverdoSetNestedPath, fixedField, getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, isMatchingFieldError, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toStringpublic ValidationErrors(Object source, org.springframework.data.mapping.context.PersistentEntities entities)
ValidationErrors instance for the given source object and PersistentEntity.source - the source object to gather validation errors on, must not be null.entity - the PersistentEntity for the given source instance, must not be null.public org.springframework.beans.ConfigurablePropertyAccessor getPropertyAccessor()
getPropertyAccessor in class org.springframework.validation.AbstractPropertyBindingResultpublic Object getTarget()
getTarget in interface org.springframework.validation.BindingResultgetTarget in class org.springframework.validation.AbstractBindingResultCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.