|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.ValidationContext
public class ValidationContext
A class which can be used to hold validation information, used by the TypeValidator interface.
Constructor Summary | |
---|---|
ValidationContext()
Creates a new ValidationContext |
Method Summary | |
---|---|
protected void |
addValidated(java.lang.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(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(ClassDescriptorResolver resolver)
Sets the ClassDescriptorResolver to use during validation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationContext()
Method Detail |
---|
public Configuration getConfiguration()
public ClassDescriptorResolver 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(ClassDescriptorResolver 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)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |