Package org.exolab.castor.xml.validators
Interface ClassValidator
-
- All Superinterfaces:
TypeValidator
- All Known Implementing Classes:
AutomaticNamingTypeDescriptor,BindingDescriptor,BindingTypeDescriptor,BindXmlAutoNamingTypeDescriptor,BindXmlDescriptor,BindXmlNodeTypeDescriptor,CacheTypeMappingDescriptor,ClassChoiceDescriptor,ClassMappingAccessTypeDescriptor,ClassMappingDescriptor,ClassTypeDescriptor,ColumnDescriptor,ComponentBindingTypeChoiceDescriptor,ComponentBindingTypeDescriptor,ContainerDescriptor,ContentMemberTypeDescriptor,EnumBindingTypeDescriptor,EnumClassNameDescriptor,EnumerationDescriptor,EnumMemberDescriptor,ExcludeDescriptor,ExcludesDescriptor,FieldHandlerDefDescriptor,FieldMappingCollectionTypeDescriptor,FieldMappingDescriptor,FieldTypeCollectionTypeDescriptor,FieldTypeDescriptor,FieldTypeVisibilityTypeDescriptor,FieldValidator,ForcesDescriptor,IncludeDescriptor,IncludeTypeDescriptor,InterfaceDescriptor,IntrospectedXMLClassDescriptor,KeyGeneratorDefDescriptor,LdapDescriptor,ManyToManyDescriptor,MappingRootDescriptor,MapToDescriptor,NamedNativeQueryDescriptor,NamedQueryDescriptor,NamingTypeDescriptor,NamingXMLTypeDescriptor,OneToManyDescriptor,OneToOneDescriptor,PackageTypeChoiceDescriptor,PackageTypeDescriptor,ParamDescriptor,PkTypeDescriptor,PrimaryKeyDescriptor,PropertyDescriptor,PropertyTypeDescriptor,QueryHintDescriptor,ReadonlyDirtyTypeDescriptor,SqlDescriptor,SqlDirtyTypeDescriptor,TableAccessModeTypeDescriptor,TableDescriptor,Validator,VisibilityTypeDescriptor,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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidate(java.lang.Object object, ValidationContext context)Validates the given Object.
-
-
-
Method Detail
-
validate
void validate(java.lang.Object object, ValidationContext context) throws ValidationExceptionValidates the given Object. An exception should be thrown when the first invalid field is discovered.- Specified by:
validatein interfaceTypeValidator- Parameters:
object- the Object to validatecontext- the ValidationContext- Throws:
ValidationException- when the class is not valid.
-
-