|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.Validator
public class Validator
A class which can perform Validation on an Object model. This class uses the ClassDescriptors and FieldDescriptors to perform the validation.
Constructor Summary | |
---|---|
Validator()
Creates a new Validator |
Method Summary | |
---|---|
void |
validate(java.lang.Object object)
Validates the given Object |
void |
validate(java.lang.Object object,
ValidationContext context)
Validates the given Object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Validator()
Method Detail |
---|
public void validate(java.lang.Object object) throws ValidationException
object
- the Object to validate
ValidationException
public void validate(java.lang.Object object, ValidationContext context) throws ValidationException
validate
in interface ClassValidator
validate
in interface TypeValidator
object
- the Object to validatecontext
- the ValidationContext to use during validation.
ValidationException
- when the class is not valid.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |