|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exolab.castor.xml.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 | |
org.exolab.castor.util.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. |
void |
setConfiguration(org.exolab.castor.util.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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValidationContext()
Method Detail |
public org.exolab.castor.util.Configuration getConfiguration()
public ClassDescriptorResolver getResolver()
public boolean isFailFast()
public void setConfiguration(org.exolab.castor.util.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |