public class DateTimeValidator extends java.lang.Object implements TypeValidator
| Constructor and Description |
|---|
DateTimeValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
setMaxExclusive(DateTimeBase max)
Sets the maximum exclusive value that this Date/Time can hold.
|
void |
setMaxInclusive(DateTimeBase max)
Sets the maximum inclusive value that this Date/Time can hold.
|
void |
setMinExclusive(DateTimeBase min)
Sets the minimum exclusive value that this Date/Time can hold.
|
void |
setMinInclusive(DateTimeBase min)
Sets the minimum inclusive value that this Date/Time can hold.
|
void |
validate(DateTimeBase dateTime)
Validates a Date/Time 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(DateTimeBase max)
max - the maximum exclusive value this Date/Time can besetMaxInclusive(org.exolab.castor.types.DateTimeBase)public void setMaxInclusive(DateTimeBase max)
max - the maximum inclusive value this Date/Time can besetMaxExclusive(org.exolab.castor.types.DateTimeBase)public void setMinExclusive(DateTimeBase min)
min - the minimum exclusive value this Date/Time can besetMinInclusive(org.exolab.castor.types.DateTimeBase)public void setMinInclusive(DateTimeBase min)
min - the minimum inclusive value this Date/Time can besetMinExclusive(org.exolab.castor.types.DateTimeBase)public void validate(DateTimeBase dateTime) throws ValidationException
dateTime - the date/time type 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