public class ValidationContext
extends java.lang.Object
| Constructor and Description |
|---|
ValidationContext()
Creates a new ValidationContext
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addValidated(java.lang.Object obj) |
Configuration |
getConfiguration()
Returns the Configuration to use during validation.
|
XMLClassDescriptorResolver |
getResolver()
Returns the ClassDescriptorResolver to use during validation.
|
boolean |
isFailFast()
Returns true if the validation process should fail
upon first error encountered, otherwise the validation
processs will attempt to validate as much as possible
(even after the first error is encountered) and collect as
many errors before either returning (no errors) or
throwing a validationException containing the list of
errors.
|
protected boolean |
isValidated(java.lang.Object obj) |
protected void |
removeValidated(java.lang.Object obj) |
void |
setConfiguration(Configuration config)
Sets the Configuration used during validation
|
void |
setFailFast(boolean failFast)
Sets the fail-fast flag.
|
void |
setResolver(XMLClassDescriptorResolver resolver)
Sets the ClassDescriptorResolver to use during validation.
|
public Configuration getConfiguration()
public XMLClassDescriptorResolver getResolver()
public boolean isFailFast()
public void setConfiguration(Configuration config)
config - the Configuration to usepublic void setFailFast(boolean failFast)
failFast - a boolean that when true enables fail-fast
validation, otherwise the validator will attempt to validate
as much as it can reporting as many errors as possible before
returning.public void setResolver(XMLClassDescriptorResolver resolver)
resolver - the ClassDescriptorResolver to use.protected boolean isValidated(java.lang.Object obj)
protected void addValidated(java.lang.Object obj)
protected void removeValidated(java.lang.Object obj)
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com