org.exolab.castor.xml.validators
Class DurationValidator

java.lang.Object
  extended byorg.exolab.castor.xml.validators.DurationValidator
All Implemented Interfaces:
TypeValidator

public class DurationValidator
extends java.lang.Object
implements TypeValidator


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

Constructor Detail

DurationValidator

public DurationValidator()
Method Detail

setMaxExclusive

public void 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(org.exolab.castor.types.Duration)

setMaxInclusive

public void 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(org.exolab.castor.types.Duration)

setMinExclusive

public void setMinExclusive(Duration min)
Sets the minimum exclusive value that this Duration can hold.

See Also:
setMinInclusive(org.exolab.castor.types.Duration)

setMinInclusive

public void setMinInclusive(Duration min)
Sets the minimum inclusive value that this Duration can hold.

See Also:
setMinExclusive(org.exolab.castor.types.Duration)

validate

public void validate(Duration duration)
              throws ValidationException
Validate a duration instance

Throws:
ValidationException

validate

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

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


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