Stores and exposes information about data-binding and validation
errors for a specific object.

Field names can be properties of the target object (e.g. "name"
when binding to a customer object), or nested fields in case of
subobjects (e.g. "address.street"). Supports subtree navigation
via setNestedPath(String): for example, an
AddressValidator validates "address", not being aware
that this is a subobject of customer.

reject(String errorCode)
Register a global error for the entire target object,
using the given error description.

void

reject(String errorCode,
Object[] errorArgs,
String defaultMessage)
Register a global error for the entire target object,
using the given error description.

void

reject(String errorCode,
String defaultMessage)
Register a global error for the entire target object,
using the given error description.

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.

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.

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.

void

setNestedPath(String nestedPath)
Allow context to be changed so that standard validators can validate
subtrees.

rejectValue

Register a field error for the specified field of the current object
(respecting the current nested path, if any), using the given error
description.

The field name may be null or empty String to indicate
the current object itself rather than a field of it. This may result
in a corresponding field error within the nested object graph or a
global error if the current object is the top object.

rejectValue

Register a field error for the specified field of the current object
(respecting the current nested path, if any), using the given error
description.

The field name may be null or empty String to indicate
the current object itself rather than a field of it. This may result
in a corresponding field error within the nested object graph or a
global error if the current object is the top object.

rejectValue

Register a field error for the specified field of the current object
(respecting the current nested path, if any), using the given error
description.

The field name may be null or empty String to indicate
the current object itself rather than a field of it. This may result
in a corresponding field error within the nested object graph or a
global error if the current object is the top object.