Public Member Functions

org.exolab.castor.xml.ClassValidator Interface Reference

Inheritance diagram for org.exolab.castor.xml.ClassValidator:
org.exolab.castor.xml.TypeValidator org.exolab.castor.xml.Validator org.exolab.castor.xml.FieldValidator org.exolab.castor.xml.util.XMLClassDescriptorImpl alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor alma.tools.entitybuilder.generated.EntitySchemaDescriptor alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor org.exolab.castor.builder.binding.BindingDescriptor org.exolab.castor.builder.binding.ClassTypeDescriptor org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor org.exolab.castor.builder.binding.FieldTypeDescriptor org.exolab.castor.builder.binding.IncludeTypeDescriptor org.exolab.castor.builder.binding.InterfaceDescriptor org.exolab.castor.builder.binding.NamingTypeDescriptor org.exolab.castor.builder.binding.NamingXMLTypeDescriptor org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor org.exolab.castor.builder.binding.PackageTypeDescriptor org.exolab.castor.builder.binding.PathTypeDescriptor org.exolab.castor.builder.binding.types.BindingTypeDescriptor org.exolab.castor.builder.binding.types.FieldTypeCollectionTypeDescriptor org.exolab.castor.mapping.xml.BindXmlDescriptor org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor org.exolab.castor.mapping.xml.ClassMappingDescriptor org.exolab.castor.mapping.xml.ContainerDescriptor org.exolab.castor.mapping.xml.FieldMappingDescriptor org.exolab.castor.mapping.xml.IncludeDescriptor org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor org.exolab.castor.mapping.xml.LdapDescriptor org.exolab.castor.mapping.xml.MappingRootDescriptor org.exolab.castor.mapping.xml.MapToDescriptor org.exolab.castor.mapping.xml.ParamDescriptor org.exolab.castor.mapping.xml.PropertyTypeDescriptor org.exolab.castor.mapping.xml.SqlDescriptor org.exolab.castor.mapping.xml.types.AccessTypeDescriptor org.exolab.castor.mapping.xml.types.BindXmlAutoNamingTypeDescriptor org.exolab.castor.mapping.xml.types.BindXmlNodeTypeDescriptor org.exolab.castor.mapping.xml.types.CollectionTypeDescriptor org.exolab.castor.mapping.xml.types.DirtyTypeDescriptor org.exolab.castor.mapping.xml.types.TypeTypeDescriptor org.exolab.castor.xml.descriptors.EnumerationDescriptor org.exolab.castor.xml.IntrospectedXMLClassDescriptor org.exolab.castor.xml.util.XMLClassDescriptorAdapter

List of all members.

Public Member Functions

void validate (Object object, ValidationContext context) throws ValidationException

Detailed Description

The validation interface used for validating class instances

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:09

Member Function Documentation

void org.exolab.castor.xml.ClassValidator.validate ( Object  object,
ValidationContext  context 
) throws ValidationException

Validates the given Object. If the failFast argument is true an exception should be thrown when the first invalid field is encountered, otherwise the the validator should attempt to discover as many errors as possible before throwing a ValidationException.

Parameters:
object the Object to validate
failFast a boolean indicating whether or not the validator class should throw an exception on the first error encountered.
Exceptions:
ValidationException when the class is not valid. Validates the given Object. An exception should be thrown when the first invalid field is discovered.
Parameters:
object the Object to validate
context the ValidationContext
Exceptions:
ValidationException when the class is not valid.

Implements org.exolab.castor.xml.TypeValidator.

Implemented in org.exolab.castor.xml.FieldValidator, and org.exolab.castor.xml.Validator.


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties