org.exolab.castor.xml

Interface ClassValidator

All Superinterfaces:
TypeValidator
Known Implementing Classes:
AccessTypeDescriptor, BindingDescriptor, BindingTypeDescriptor, BindXmlAutoNamingTypeDescriptor, BindXmlDescriptor, BindXmlNodeTypeDescriptor, CacheTypeMappingDescriptor, ClassMappingDescriptor, ClassTypeDescriptor, CollectionTypeDescriptor, ComponentBindingTypeChoiceDescriptor, ComponentBindingTypeDescriptor, ContainerDescriptor, DirtyTypeDescriptor, FieldMappingDescriptor, FieldTypeCollectionTypeDescriptor, FieldTypeDescriptor, FieldValidator, IncludeDescriptor, IncludeTypeDescriptor, InterfaceDescriptor, IntrospectedXMLClassDescriptor, KeyGeneratorDefDescriptor, LdapDescriptor, MappingRootDescriptor, MapToDescriptor, NamingTypeDescriptor, NamingXMLTypeDescriptor, PackageTypeChoiceDescriptor, PackageTypeDescriptor, ParamDescriptor, PathTypeDescriptor, SqlDescriptor, TypeTypeDescriptor, Validator, XMLClassDescriptorAdapter, XMLClassDescriptorImpl

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

Method Summary

void
validate(Object object, ValidationContext context)
Validates the given Object.

Methods inherited from interface org.exolab.castor.xml.TypeValidator

validate

Method Details

validate

public void validate(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 validate
context - the ValidationContext

Throws:
ValidationException - when the class is not valid.


Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com