IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

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

java.lang.Object
  extended by com.ibm.btt.base.types.AbstractValidator
      extended by com.ibm.btt.base.types.ext.IntegerStringValidator
All Implemented Interfaces:
TypeConstants, Validation, java.io.Externalizable, java.io.Serializable

public class IntegerStringValidator
extends AbstractValidator

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.btt.base.types.AbstractValidator
keyValuePairs
 
Fields inherited from interface com.ibm.btt.base.types.TypeConstants
amended, CONV_TYPE_DEFAULT, CONV_TYPE_HOST, CONV_TYPE_OUTPUT, CONV_TYPE_SER, CONV_TYPE_XML, disabled, hidden, isAmended, isDisabled, isHidden, isMandatory, isOmitted, isReadOnly, mandatory, omitted, readOnly, TYPE_DEFAULT, TYPE_REGISTRY_INIT_SIZE
 
Constructor Summary
IntegerStringValidator()
          Creates an IntegerStringValidator object.
IntegerStringValidator(java.util.Hashtable keyValuePairs)
          Creates an IntegerStringValidator object.
 
Method Summary
 java.lang.Object validateForType(java.lang.Object toValidate, PropertyDescription descriptor, Hashtable parameters)
          Validates the object of the String type and, if successful, returns it.
 
Methods inherited from class com.ibm.btt.base.types.AbstractValidator
getParameters, readExternal, validate, validate, validate, validate, validate, validateForType, validateParams, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerStringValidator

public IntegerStringValidator()
Creates an IntegerStringValidator object.


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,
                                        Hashtable parameters)
                                 throws DSETypeException
Validates the object of the String type and, if successful, returns it. Otherwise, this method throws an exception. This method first tries to get the parameters required for the validation from the Hashtable passed as an argument. If it does not find the parameters there, the method then tries the descriptor passed as an argument. If the method does not find the parameters in the descriptor, it gets them from the Constants of the type.

Overrides:
validateForType in class AbstractValidator
Parameters:
toValidate - Object
descriptor - PropertyDescription
parameters - com.ibm.btt.base.Hashtable
Throws:
DSETypeException - Validation is unsuccessful.

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009