org.exolab.castor.xml.validators
Interface ClassValidator
- All Superinterfaces:
- TypeValidator
- All Known Implementing Classes:
- EnumerationDescriptor, FieldValidator, Validator, XMLClassDescriptorAdapter, XMLClassDescriptorImpl
public interface ClassValidator
- extends TypeValidator
The validation interface used for validating class instances.
- Version:
- $Revision: 6936 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
validate
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.
Copyright © 2011. All Rights Reserved.