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

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

public class IntegerStringValidator
extends AbstractValidator

Validator for business objects of Type String that must be a given number of digits.

See Also:
Serialized Form

Fields inherited from class com.ibm.dse.base.types.AbstractValidator
keyValuePairs
 
Constructor Summary
IntegerStringValidator(java.util.Hashtable keyValuePairs)
          Creates an IntegerStringValidator object.
 
Method Summary
 java.lang.Object validateForType(java.lang.Object toValidate, PropertyDescription descriptor)
          Validates an object of Type String that must have only numeric character 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

IntegerStringValidator

public IntegerStringValidator(java.util.Hashtable keyValuePairs)
Creates an IntegerStringValidator 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 String that must have only numeric character 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.