org.exolab.castor.xml
Class Validator

java.lang.Object
  |
  +--org.exolab.castor.xml.Validator
Direct Known Subclasses:
FieldValidator

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.14 $ $Date: 2001/02/24 03:16:55 $
Author:
Keith Visco

Constructor Summary
Validator()
          Creates a new Validator
 
Method Summary
 void validate(java.lang.Object object)
          Validates the given Object
 void validate(java.lang.Object object, ClassDescriptorResolver resolver)
          Validates the given Object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator

public Validator()
Creates a new Validator
Method Detail

validate

public void validate(java.lang.Object object)
              throws ValidationException
Validates the given Object
Specified by:
validate in interface ClassValidator
Parameters:
object - the Object to validate

validate

public void validate(java.lang.Object object,
                     ClassDescriptorResolver resolver)
              throws ValidationException
Validates the given Object
Specified by:
validate in interface ClassValidator
Parameters:
object - the Object to validate
resolver - the ClassDescriptorResolver to load ClassDescriptors for use during validation.


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