IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

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

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

public class DateValidator
extends AbstractValidator

Validator for business objects of the Date type.

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
DateValidator()
          Creates a validator for business objects of the Date type.
DateValidator(java.util.Hashtable keyValuePairs)
          Creates a validator for business objects of the Date type.
 
Method Summary
 java.lang.Object validateForType(java.lang.Object toValidate, PropertyDescription descriptor, Hashtable parameters)
          Validates the object of the Date type and, if successful, returns the object.
 
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

DateValidator

public DateValidator()
Creates a validator for business objects of the Date type.


DateValidator

public DateValidator(java.util.Hashtable keyValuePairs)
Creates a validator for business objects of the Date type.

Parameters:
keyValuePairs - Hashtable
Method Detail

validateForType

public java.lang.Object validateForType(java.lang.Object toValidate,
                                        PropertyDescription descriptor,
                                        Hashtable parameters)
                                 throws DSETypeException
Validates the object of the Date type and, if successful, returns the object. 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, 2010