org.exolab.castor.xml
Interface ClassValidator
- All Superinterfaces:
- TypeValidator
- All Known Implementing Classes:
- Validator
- public interface ClassValidator
- extends TypeValidator
The validation interface used for validating class instances
- Version:
- $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:09 $
- Author:
- Keith Visco
validate
public void validate(java.lang.Object object,
ValidationContext context)
throws ValidationException
- Validates the given Object. An exception should be thrown
when the first invalid field is discovered.
- Specified by:
validate
in interface TypeValidator
- Parameters:
object
- the Object to validatecontext
- the ValidationContext
- Throws:
ValidationException
- when the class is not valid.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com