org.exolab.castor.xml.validators
Class DateTimeValidator

java.lang.Object
  extended by org.exolab.castor.xml.validators.DateTimeValidator
All Implemented Interfaces:
TypeValidator

public class DateTimeValidator
extends java.lang.Object
implements TypeValidator


Constructor Summary
DateTimeValidator()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeValidator

public DateTimeValidator()
Method Detail

setMaxExclusive

public void setMaxExclusive(DateTimeBase max)
Sets the maximum exclusive value that this Date/Time can hold.

Parameters:
max - the maximum exclusive value this Date/Time can be
See Also:
setMaxInclusive(org.exolab.castor.types.DateTimeBase)

setMaxInclusive

public void setMaxInclusive(DateTimeBase max)
Sets the maximum inclusive value that this Date/Time can hold.

Parameters:
max - the maximum inclusive value this Date/Time can be
See Also:
setMaxExclusive(org.exolab.castor.types.DateTimeBase)

setMinExclusive

public void setMinExclusive(DateTimeBase min)
Sets the minimum exclusive value that this Date/Time can hold.

Parameters:
max - the minimum exclusive value this Date/Time can be
See Also:
setMinInclusive(org.exolab.castor.types.DateTimeBase)

setMinInclusive

public void setMinInclusive(DateTimeBase min)
Sets the minimum inclusive value that this Date/Time can hold.

Parameters:
max - the minimum inclusive value this Date/Time can be
See Also:
setMinExclusive(org.exolab.castor.types.DateTimeBase)

validate

public void validate(DateTimeBase dateTime)
              throws ValidationException
Validates a Date/Time instance

Parameters:
dateTime - the date/time type to validate
Throws:
ValidationException

validate

public void validate(java.lang.Object object)
              throws ValidationException
Validates the given Object

Parameters:
object - the Object to validate
Throws:
ValidationException

validate

public void validate(java.lang.Object object,
                     ValidationContext context)
              throws ValidationException
Validates the given Object

Specified by:
validate in interface TypeValidator
Parameters:
object - the Object to validate
context - the ValidationContext
Throws:
ValidationException


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com