|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.validators.PatternValidator
org.exolab.castor.xml.validators.LongValidator
public class LongValidator
The Integer Validation class. This class handles validation for the integer type as well as all integer derived types such as positive-integer and negative-integer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.exolab.castor.xml.validators.PatternValidator |
---|
PatternValidator.DefaultRegExpEvaluator |
Constructor Summary | |
---|---|
LongValidator()
Creates a new LongValidator with no restrictions |
Method Summary | |
---|---|
void |
clearFixed()
Clears the fixed value for this LongValidator |
void |
clearMax()
Clears the maximum value for this LongValidator |
void |
clearMin()
Clears the minimum value for this LongValidator |
java.lang.Long |
getFixed()
Returns the fixed value that longs validated with this validator must be equal to. |
java.lang.Long |
getMaxInclusive()
Returns the maximum value that longs validated with this validator must be equal to or less than. |
java.lang.Long |
getMinInclusive()
Returns the minimum value that longs validated with this validator must be equal to or greater than. |
boolean |
hasFixed()
Returns true if a fixed value, to validate against, has been set. |
void |
setFixed(long fixedValue)
Sets the fixed value that integers validated with this validated must be equal to |
void |
setMaxExclusive(long maxValue)
Sets the maximum value that longs validated with this validator must be less than |
void |
setMaxInclusive(long maxValue)
Sets the maximum value that longs validated with this validator are allowed to be |
void |
setMinExclusive(long minValue)
Sets the minimum value that longs validated with this validator must be greater than |
void |
setMinInclusive(long minValue)
Sets the minimum value that longs validated with this validator are allowed to be |
void |
validate(long value,
ValidationContext context)
|
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 org.exolab.castor.xml.validators.PatternValidator |
---|
getPattern, hasPattern, isNillable, setNillable, setPattern, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongValidator()
Method Detail |
---|
public void clearFixed()
public void clearMax()
public void clearMin()
public java.lang.Long getFixed()
public java.lang.Long getMaxInclusive()
public java.lang.Long getMinInclusive()
public boolean hasFixed()
public void setFixed(long fixedValue)
fixedValue
- the fixed value that a long validated with
this validator must be equal to.
public void setMinExclusive(long minValue)
minValue
- the minimum value that a long validated with this
validator must be greater thanpublic void setMinInclusive(long minValue)
minValue
- the minimum value that a long validated with this
validator may bepublic void setMaxExclusive(long maxValue)
maxValue
- the maximum value that a long validated
with this validator must be less thanpublic void setMaxInclusive(long maxValue)
maxValue
- the maximum value that a long validated
with this validator may bepublic void validate(long value, ValidationContext context) throws ValidationException
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
validate
in class PatternValidator
object
- the Object to validatecontext
- the ValidationContext
ValidationException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |