public class DurationValidator extends java.lang.Object implements TypeValidator
| Constructor and Description |
|---|
DurationValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
setMaxExclusive(Duration max)
Sets the maximum exclusive value that this Duration can hold.
|
void |
setMaxInclusive(Duration max)
Sets the maximum inclusive value that this Duration can hold.
|
void |
setMinExclusive(Duration min)
Sets the minimum exclusive value that this Duration can hold.
|
void |
setMinInclusive(Duration min)
Sets the minimum inclusive value that this Duration can hold.
|
void |
validate(Duration duration)
Validate a duration instance
|
void |
validate(java.lang.Object object)
Validates the given Object
|
void |
validate(java.lang.Object object,
ValidationContext context)
Validates the given Object
|
public void setMaxExclusive(Duration max)
max - the maximum exclusive value this Duration can besetMaxInclusive(org.exolab.castor.types.Duration)public void setMaxInclusive(Duration max)
max - the maximum inclusive value this Duration can besetMaxExclusive(org.exolab.castor.types.Duration)public void setMinExclusive(Duration min)
min - the minimum exclusive value this Duration can besetMinInclusive(org.exolab.castor.types.Duration)public void setMinInclusive(Duration min)
min - the minimum inclusive value this Duration can besetMinExclusive(org.exolab.castor.types.Duration)public void validate(Duration duration) throws ValidationException
duration - the duration to validateValidationExceptionpublic void validate(java.lang.Object object)
throws ValidationException
object - the Object to validateValidationExceptionpublic 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