Public Member Functions

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

Inheritance diagram for org.exolab.castor.xml.validators.ByteValidator:
org.exolab.castor.xml.validators.PatternValidator org.exolab.castor.xml.TypeValidator

List of all members.

Public Member Functions

 ByteValidator ()
void clearFixed ()
void clearMax ()
void clearMin ()
Byte getFixed ()
Byte getMaxInclusive ()
Byte getMinInclusive ()
boolean hasFixed ()
void setFixed (byte fixedValue)
void setMinExclusive (byte minValue)
void setMinInclusive (byte minValue)
void setMaxExclusive (byte maxValue)
void setMaxInclusive (byte maxValue)
void validate (byte b, ValidationContext context) throws ValidationException
void validate (Object object) throws ValidationException
void validate (Object object, ValidationContext context) throws ValidationException

Detailed Description

The Byte Validation class. This class handles validation for the byte type.

Author:
Keith Visco
Arnaud Blandin
Version:
Revision:
1.2
Date:
2003/03/03 09:57:21

Constructor & Destructor Documentation

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

Creates a new ByteValidator with no restrictions


Member Function Documentation

void org.exolab.castor.xml.validators.ByteValidator.clearFixed (  ) 

Clears the fixed value for this IntegerValidator

void org.exolab.castor.xml.validators.ByteValidator.clearMax (  ) 

Clears the maximum value for this ByteValidator

void org.exolab.castor.xml.validators.ByteValidator.clearMin (  ) 

Clears the minimum value for this ByteValidator

Byte org.exolab.castor.xml.validators.ByteValidator.getFixed (  ) 

Returns the fixed value that bytes 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.
Byte org.exolab.castor.xml.validators.ByteValidator.getMaxInclusive (  ) 

Returns the maximum value that bytes 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.
Byte org.exolab.castor.xml.validators.ByteValidator.getMinInclusive (  ) 

Returns the minimum value that bytes 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.
boolean org.exolab.castor.xml.validators.ByteValidator.hasFixed (  ) 

Returns true if a fixed value, to validate against, has been set.

Returns:
true if a fixed value has been set.
void org.exolab.castor.xml.validators.ByteValidator.setFixed ( byte  fixedValue  ) 

Sets the fixed value that bytes validated with this validated must be equal to

Parameters:
fixedValue the fixed value a byte 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
void org.exolab.castor.xml.validators.ByteValidator.setMaxExclusive ( byte  maxValue  ) 

Sets the maximum value that bytes validated with this validator must be less than

Parameters:
maxValue the maximum value a byte validated with this validator must be less than
void org.exolab.castor.xml.validators.ByteValidator.setMaxInclusive ( byte  maxValue  ) 

Sets the maximum value that bytes validated with this validator are allowed to be

Parameters:
maxValue the maximum value a byte validated with this validator may be
void org.exolab.castor.xml.validators.ByteValidator.setMinExclusive ( byte  minValue  ) 

Sets the minimum value that bytes validated with this validator must be greater than

Parameters:
minValue the minimum value a byte validated with this validator must be greater than
void org.exolab.castor.xml.validators.ByteValidator.setMinInclusive ( byte  minValue  ) 

Sets the minimum value that bytes validated with this validator are allowed to be

Parameters:
minValue the minimum value a byte validated with this validator may be
void org.exolab.castor.xml.validators.ByteValidator.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.xml.validators.ByteValidator.validate().

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

Validates the given Object

Parameters:
object the Object to validate

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

void org.exolab.castor.xml.validators.ByteValidator.validate ( byte  b,
ValidationContext  context 
) throws ValidationException

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