public class SimpleTypeValidator extends java.lang.Object implements TypeValidator
| Constructor and Description |
|---|
SimpleTypeValidator()
Creates a default SimpleTypeValidator
|
SimpleTypeValidator(TypeValidator validator)
Creates a SimpleTypeValidator using the given TypeValidator for
delegating validation
|
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.Object object,
ValidationContext context)
Validates the given Object
|
public SimpleTypeValidator()
public SimpleTypeValidator(TypeValidator validator)
public void setMaxOccurs(int maxOccurs)
maxOccurs - the maximum occurance that the descibed field
may occur.public void setMinOccurs(int minOccurs)
minOccurs - the minimum occurance that the descibed field
may occur.public void setValidator(TypeValidator validator)
validator - the TypeValidator to delegate validation topublic void validate(java.lang.Object object,
ValidationContext context)
throws ValidationException
validate in interface TypeValidatorobject - the Object to validatecontext - the ValidationContextValidationExceptionIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com