org.exolab.castor.xml
public class ValidationContext extends Object
Version: $Revision: 1.2 $ $Date: 2004/10/06 08:10:17 $
Constructor Summary | |
---|---|
ValidationContext()
Creates a new ValidationContext |
Method Summary | |
---|---|
protected void | addValidated(Object obj) |
Configuration | getConfiguration()
Returns the Configuration to use during validation.
|
ClassDescriptorResolver | 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(Object obj) |
protected void | removeValidated(Object obj) |
void | setConfiguration(Configuration config)
Sets the Configuration used during validation
|
void | setFailFast(boolean failFast)
Sets the fail-fast flag. |
void | setResolver(ClassDescriptorResolver resolver)
Sets the ClassDescriptorResolver to use during validation.
|
Returns: the Configuration to use. Will never be null.
Returns: the ClassDescriptorResolver to use. May be null.
Returns: true if fail-fast processing is enabled.
Parameters: config the Configuration to use
Parameters: 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.
Parameters: resolver the ClassDescriptorResolver to use.