Package org.exolab.castor.xml
Class Validator
java.lang.Object
org.exolab.castor.xml.Validator
- All Implemented Interfaces:
TypeValidator
,ClassValidator
- Direct Known Subclasses:
FieldValidator
,XMLClassDescriptorImpl
A class which can perform Validation on an Object model. This class uses the
ClassDescriptors and FieldDescriptors to perform the validation.
- Version:
- $Revision$ $Date: 2005-02-28 17:43:25 -0700 (Mon, 28 Feb 2005) $
- Author:
- Keith Visco
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkUnresolvedIdrefs
(ValidationContext context) void
Validates the given Object.void
validate
(Object object, ValidationContext context) Validates the given Object.
-
Field Details
-
resourceBundle
resource bundle
-
-
Constructor Details
-
Validator
public Validator()Creates a new Validator.
-
-
Method Details
-
validate
Validates the given Object.- Parameters:
object
- the Object to validate- Throws:
ValidationException
- if validation fails.
-
validate
Validates the given Object.- Specified by:
validate
in interfaceClassValidator
- Specified by:
validate
in interfaceTypeValidator
- Parameters:
object
- the Object to validatecontext
- the ValidationContext to use during validation.- Throws:
ValidationException
- if validation fails.
-
checkUnresolvedIdrefs
- Throws:
ValidationException
-