org.exolab.castor.xml.validators

Class BigIntegerValidator

public class BigIntegerValidator extends PatternValidator implements TypeValidator

The BigInteger Validation class. This class handles validation for the BigInteger type.

Version: $Revision: 5951 $ $Date: 2003-03-03 02:57:21 -0700 (Mon, 03 Mar 2003) $

Author: Werner Guttmann

Constructor Summary
BigIntegerValidator()
Creates a new BigIntegerValidator with no restrictions
Method Summary
voidclearFixed()
Clears the fixed value for this BigIntegerValidator
voidclearMax()
Clears the maximum value for this BigIntegerValidator
voidclearMin()
Clears the minimum value for this BigIntegerValidator
BigIntegergetFixed()
Returns the fixed value that big integers validated with this validator must be equal to.
BigIntegergetMaxInclusive()
Returns the maximum value that bing integers validated with this validator must be equal to or less than.
BigIntegergetMinInclusive()
Returns the minimum value that big integers validated with this validator must be equal to or greater than.
booleanhasFixed()
Returns true if a fixed value, to validate against, has been set.
voidsetFixed(BigInteger fixedValue)
Sets the fixed value that big integers validated with this validated must be equal to
voidsetMaxExclusive(BigInteger maxValue)
Sets the maximum value that big integers validated with this validator must be less than
voidsetMaxInclusive(BigInteger maxValue)
Sets the maximum value that big integers validated with this validator are allowed to be
voidsetMinExclusive(BigInteger minValue)
Sets the minimum value that big integers validated with this validator must be greater than
voidsetMinInclusive(BigInteger minValue)
Sets the minimum value that big integers validated with this validator are allowed to be
voidvalidate(BigInteger value, ValidationContext context)
voidvalidate(Object object)
Validates the given Object
voidvalidate(Object object, ValidationContext context)
Validates the given Object

Constructor Detail

BigIntegerValidator

public BigIntegerValidator()
Creates a new BigIntegerValidator with no restrictions

Method Detail

clearFixed

public void clearFixed()
Clears the fixed value for this BigIntegerValidator

clearMax

public void clearMax()
Clears the maximum value for this BigIntegerValidator

clearMin

public void clearMin()
Clears the minimum value for this BigIntegerValidator

getFixed

public BigInteger getFixed()
Returns the fixed value that big integers validated with this validator must be equal to. A null value is returned if no fixed value has been specified.

Returns: the fixed value to validate against.

getMaxInclusive

public BigInteger getMaxInclusive()
Returns the maximum value that bing integers validated with this validator must be equal to or less than. A null value is returned if no maximum value has been specified.

Returns: the maximum inclusive value to validate against.

getMinInclusive

public BigInteger getMinInclusive()
Returns the minimum value that big integers validated with this validator must be equal to or greater than. A null value is returned if no minimum value has been specified.

Returns: the minimum inclusive value to validate against.

hasFixed

public boolean hasFixed()
Returns true if a fixed value, to validate against, has been set.

Returns: true if a fixed value has been set.

setFixed

public void setFixed(BigInteger fixedValue)
Sets the fixed value that big integers validated with this validated must be equal to

Parameters: fixedValue the fixed value that a long validated with this validator must be equal to.
NOTE: Using Fixed values takes preceedence over using max and mins, and is really the same as setting both max-inclusive and min-inclusive to the same value

setMaxExclusive

public void setMaxExclusive(BigInteger maxValue)
Sets the maximum value that big integers validated with this validator must be less than

Parameters: maxValue the maximum value that a big integer validated with this validator must be less than

setMaxInclusive

public void setMaxInclusive(BigInteger maxValue)
Sets the maximum value that big integers validated with this validator are allowed to be

Parameters: maxValue the maximum value that a big integer validated with this validator may be

setMinExclusive

public void setMinExclusive(BigInteger minValue)
Sets the minimum value that big integers validated with this validator must be greater than

Parameters: minValue the minimum value that a big integer validated with this validator must be greater than

setMinInclusive

public void setMinInclusive(BigInteger minValue)
Sets the minimum value that big integers validated with this validator are allowed to be

Parameters: minValue the minimum value that a big integer validated with this validator may be

validate

public void validate(BigInteger value, ValidationContext context)

validate

public void validate(Object object)
Validates the given Object

Parameters: object the Object to validate

validate

public void validate(Object object, ValidationContext context)
Validates the given Object

Parameters: object the Object to validate context the ValidationContext

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