|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.validators.DurationValidator
public class DurationValidator
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 |
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 |
---|
public DurationValidator()
Method Detail |
---|
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)
max
- the minimum exclusive value this Duration can besetMinInclusive(org.exolab.castor.types.Duration)
public void setMinInclusive(Duration min)
max
- the minimum inclusive value this Duration can besetMinExclusive(org.exolab.castor.types.Duration)
public void validate(Duration duration) throws ValidationException
duation
- the duration to validate
ValidationException
public void validate(java.lang.Object object) throws ValidationException
object
- the Object to validate
ValidationException
public void validate(java.lang.Object object, ValidationContext context) throws ValidationException
validate
in interface TypeValidator
object
- the Object to validatecontext
- the ValidationContext
ValidationException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |