Public Member Functions

org.exolab.castor.xml.validators.DurationValidator Class Reference

Inheritance diagram for org.exolab.castor.xml.validators.DurationValidator:
org.exolab.castor.xml.TypeValidator

List of all members.

Public Member Functions

 DurationValidator ()
void setMaxExclusive (Duration max)
void setMaxInclusive (Duration max)
void setMinExclusive (Duration min)
void setMinInclusive (Duration min)
void validate (Duration duration) throws ValidationException
void validate (Object object) throws ValidationException
void validate (Object object, ValidationContext context) throws ValidationException

Constructor & Destructor Documentation

org.exolab.castor.xml.validators.DurationValidator.DurationValidator (  ) 

Member Function Documentation

void org.exolab.castor.xml.validators.DurationValidator.setMaxExclusive ( Duration  max  ) 

Sets the maximum exclusive value that this Duration can hold.

Parameters:
max the maximum exclusive value this Duration can be
See also:
setMaxInclusive
void org.exolab.castor.xml.validators.DurationValidator.setMaxInclusive ( Duration  max  ) 

Sets the maximum inclusive value that this Duration can hold.

Parameters:
max the maximum inclusive value this Duration can be
See also:
setMaxExclusive
void org.exolab.castor.xml.validators.DurationValidator.setMinExclusive ( Duration  min  ) 

Sets the minimum exclusive value that this Duration can hold.

Parameters:
max the minimum exclusive value this Duration can be
See also:
setMinInclusive
void org.exolab.castor.xml.validators.DurationValidator.setMinInclusive ( Duration  min  ) 

Sets the minimum inclusive value that this Duration can hold.

Parameters:
max the minimum inclusive value this Duration can be
See also:
setMinExclusive
void org.exolab.castor.xml.validators.DurationValidator.validate ( Object  object,
ValidationContext  context 
) throws ValidationException

Validates the given Object

Parameters:
object the Object to validate
context the ValidationContext

Implements org.exolab.castor.xml.TypeValidator.

References org.exolab.castor.types.Duration.parseDuration(), and org.exolab.castor.xml.validators.DurationValidator.validate().

void org.exolab.castor.xml.validators.DurationValidator.validate ( Object  object  )  throws ValidationException

Validates the given Object

Parameters:
object the Object to validate

References org.exolab.castor.xml.validators.DurationValidator.validate().

void org.exolab.castor.xml.validators.DurationValidator.validate ( Duration  duration  )  throws ValidationException

Validate a duration instance

Parameters:
duation the duration to validate
Exceptions:
ValidationException 

References org.exolab.castor.types.Duration.isGreater().

Referenced by org.exolab.castor.xml.validators.DurationValidator.validate().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties