public class ValidationErrors extends 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.MODEL_KEY_PREFIXNESTED_PATH_SEPARATOR| Constructor and Description |
|---|
ValidationErrors(Object source,
PersistentEntities entities)
Creates a new
ValidationErrors instance for the given source object and PersistentEntity. |
| Modifier and Type | Method and Description |
|---|---|
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, recordFieldValue, recordSuppressedField, reject, rejectValue, resolveMessageCodes, resolveMessageCodes, setMessageCodesResolverdoSetNestedPath, fixedField, getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, isMatchingFieldError, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPathpublic ValidationErrors(Object source, 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 ConfigurablePropertyAccessor getPropertyAccessor()
getPropertyAccessor in class AbstractPropertyBindingResultpublic Object getTarget()
getTarget in interface BindingResultgetTarget in class AbstractBindingResultCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.