abstract
void
|
addAllErrors(Errors errors)
Add all errors from the given Errors instance to this
Errors instance.
|
abstract
List<ObjectError>
|
getAllErrors()
Get all errors, both global and field ones.
|
abstract
int
|
getErrorCount()
Return the total number of errors.
|
abstract
FieldError
|
getFieldError()
Get the first error associated with a field, if any.
|
abstract
FieldError
|
getFieldError(String field)
Get the first error associated with the given field, if any.
|
abstract
int
|
getFieldErrorCount(String field)
Return the number of errors associated with the given field.
|
abstract
int
|
getFieldErrorCount()
Return the number of errors associated with a field.
|
abstract
List<FieldError>
|
getFieldErrors()
Get all errors associated with a field.
|
abstract
List<FieldError>
|
getFieldErrors(String field)
Get all errors associated with the given field.
|
abstract
Class
|
getFieldType(String field)
Return the type of a given field.
|
abstract
Object
|
getFieldValue(String field)
Return the current value of the given field, either the current
bean property value or a rejected update from the last binding.
|
abstract
ObjectError
|
getGlobalError()
Get the first global error, if any.
|
abstract
int
|
getGlobalErrorCount()
Return the number of global errors.
|
abstract
List<ObjectError>
|
getGlobalErrors()
Get all global errors.
|
abstract
String
|
getNestedPath()
Return the current nested path of this Errors object.
|
abstract
String
|
getObjectName()
Return the name of the bound root object.
|
abstract
boolean
|
hasErrors()
Return if there were any errors.
|
abstract
boolean
|
hasFieldErrors(String field)
Are there any errors associated with the given field?
|
abstract
boolean
|
hasFieldErrors()
Are there any field errors?
|
abstract
boolean
|
hasGlobalErrors()
Are there any global errors?
|
abstract
void
|
popNestedPath()
Pop the former nested path from the nested path stack.
|
abstract
void
|
pushNestedPath(String subPath)
Push the given sub path onto the nested path stack.
|
abstract
void
|
reject(String errorCode)
Register a global error for the entire target object,
using the given error description.
|
abstract
void
|
reject(String errorCode, Object[] errorArgs, String defaultMessage)
Register a global error for the entire target object,
using the given error description.
|
abstract
void
|
reject(String errorCode, String defaultMessage)
Register a global error for the entire target object,
using the given error description.
|
abstract
void
|
rejectValue(String field, String errorCode, String defaultMessage)
Register a field error for the specified field of the current object
(respecting the current nested path, if any), using the given error
description.
|
abstract
void
|
rejectValue(String field, String errorCode, Object[] errorArgs, String defaultMessage)
Register a field error for the specified field of the current object
(respecting the current nested path, if any), using the given error
description.
|
abstract
void
|
rejectValue(String field, String errorCode)
Register a field error for the specified field of the current object
(respecting the current nested path, if any), using the given error
description.
|
abstract
void
|
setNestedPath(String nestedPath)
Allow context to be changed so that standard validators can validate
subtrees.
|