org.exolab.castor.xml

Class Validator

Implemented Interfaces:
ClassValidator, TypeValidator
Known Direct Subclasses:
FieldValidator, XMLClassDescriptorImpl

public class Validator
extends java.lang.Object
implements ClassValidator

A class which can perform Validation on an Object model. This class uses the ClassDescriptors and FieldDescriptors to perform the validation.
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:16 $
Author:
Keith Visco

Constructor Summary

Validator()
Creates a new Validator

Method Summary

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

Constructor Details

Validator

public Validator()
Creates a new Validator

Method Details

validate

public void validate(Object object)
            throws ValidationException
Validates the given Object
Parameters:
object - the Object to validate

validate

public void validate(Object object,
                     ValidationContext context)
            throws ValidationException
Validates the given Object
Specified by:
validate in interface ClassValidator
validate in interface TypeValidator
Parameters:
object - the Object to validate
context - the ValidationContext to use during validation.

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