com.ibm.dse.base.types.ext
Class IntegerValidator

java.lang.Object
  |
  +--com.ibm.dse.base.types.AbstractValidator
        |
        +--com.ibm.dse.base.types.ext.IntegerValidator

public class IntegerValidator
extends AbstractValidator

Validator for business objects of Type Integer

See Also:
Serialized Form

Fields inherited from class com.ibm.dse.base.types.AbstractValidator
keyValuePairs
 
Constructor Summary
IntegerValidator(java.util.Hashtable keyValuePairs)
          Creates an IntegerValidator object.
 
Method Summary
 java.lang.Object validateForType(java.lang.Object toValidate, PropertyDescription descriptor)
          Validates an object of Type Integer and if successful, the object is returned, otherwise an appropriate exception is thrown.
 
Methods inherited from class com.ibm.dse.base.types.AbstractValidator
getParameters, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerValidator

public IntegerValidator(java.util.Hashtable keyValuePairs)
Creates an IntegerValidator object.
Parameters:
keyValuePairs - java.util.Hashtable
Method Detail

validateForType

public java.lang.Object validateForType(java.lang.Object toValidate,
                                        PropertyDescription descriptor)
                                 throws DSETypeException
Validates an object of Type Integer and if successful, the object is returned, otherwise an appropriate exception is thrown. Parameters required are first taken from the descriptor passed as argument, and if they are not found there then they are taken for the own hashtable.
Overrides:
validateForType in class AbstractValidator
Tags copied from class: AbstractValidator
Parameters:
toValidate - Object
descriptor - PropertyDescription
Throws:
DSETypeException - Validation is unsuccessful.