Public Member Functions

org.exolab.castor.xml.SimpleTypeValidator Class Reference

Inheritance diagram for org.exolab.castor.xml.SimpleTypeValidator:
org.exolab.castor.xml.TypeValidator

List of all members.

Public Member Functions

 SimpleTypeValidator ()
 SimpleTypeValidator (TypeValidator validator)
void setMaxOccurs (int maxOccurs)
void setMinOccurs (int minOccurs)
void setValidator (TypeValidator validator)
void validate (Object object, ValidationContext context) throws ValidationException

Detailed Description

A class for defining simple rules used for validating a content model

Author:
Keith Visco
Version:
Revision:
1.2
Date:
2004/10/01 13:25:13

Constructor & Destructor Documentation

org.exolab.castor.xml.SimpleTypeValidator.SimpleTypeValidator (  ) 

Creates a default SimpleTypeValidator

org.exolab.castor.xml.SimpleTypeValidator.SimpleTypeValidator ( TypeValidator  validator  ) 

Creates a SimpleTypeValidator using the given TypeValidator for delegating validation


Member Function Documentation

void org.exolab.castor.xml.SimpleTypeValidator.setMaxOccurs ( int  maxOccurs  ) 

Sets the maximum occurance that the described field may occur

Parameters:
maxOccurs the maximum occurance that the descibed field may occur.
void org.exolab.castor.xml.SimpleTypeValidator.setMinOccurs ( int  minOccurs  ) 

Sets the minimum occurance that the described field may occur

Parameters:
minOccurs the minimum occurance that the descibed field may occur.
void org.exolab.castor.xml.SimpleTypeValidator.setValidator ( TypeValidator  validator  ) 

Sets the TypeValidator to delegate validation to

Parameters:
validator the TypeValidator to delegate validation to
void org.exolab.castor.xml.SimpleTypeValidator.validate ( Object  object,
ValidationContext  context 
) throws ValidationException

Validates the given Object

Parameters:
object the Object to validate
context the ValidationContext

Implements org.exolab.castor.xml.TypeValidator.

References org.exolab.castor.xml.TypeValidator.validate().


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