org.exolab.castor.xml
Class SimpleTypeValidator
java.lang.Object
org.exolab.castor.xml.SimpleTypeValidator
- TypeValidator
public class SimpleTypeValidator
extends java.lang.Object
A class for defining simple rules used for validating a content model
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:13 $
SimpleTypeValidator
public SimpleTypeValidator()
Creates a default SimpleTypeValidator
SimpleTypeValidator
public SimpleTypeValidator(TypeValidator validator)
Creates a SimpleTypeValidator using the given TypeValidator for
delegating validation
setMaxOccurs
public void setMaxOccurs(int maxOccurs)
Sets the maximum occurance that the described field may occur
maxOccurs
- the maximum occurance that the descibed field
may occur.
setMinOccurs
public void setMinOccurs(int minOccurs)
Sets the minimum occurance that the described field may occur
minOccurs
- the minimum occurance that the descibed field
may occur.
setValidator
public void setValidator(TypeValidator validator)
Sets the TypeValidator to delegate validation to
validator
- the TypeValidator to delegate validation to
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com