org.exolab.castor.xml
public class SimpleTypeValidator extends Object implements TypeValidator
Version: $Revision: 5951 $ $Date: 2004-10-01 07:25:46 -0600 (Fri, 01 Oct 2004) $
Constructor Summary | |
---|---|
SimpleTypeValidator()
Creates a default SimpleTypeValidator
| |
SimpleTypeValidator(TypeValidator validator)
Creates a SimpleTypeValidator using the given TypeValidator for
delegating validation
|
Method Summary | |
---|---|
void | setMaxOccurs(int maxOccurs)
Sets the maximum occurance that the described field may occur |
void | setMinOccurs(int minOccurs)
Sets the minimum occurance that the described field may occur |
void | setValidator(TypeValidator validator)
Sets the TypeValidator to delegate validation to |
void | validate(Object object, ValidationContext context)
Validates the given Object
|
Parameters: maxOccurs the maximum occurance that the descibed field may occur.
Parameters: minOccurs the minimum occurance that the descibed field may occur.
Parameters: validator the TypeValidator to delegate validation to
Parameters: object the Object to validate context the ValidationContext