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

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

public class DateValidator
extends AbstractValidator

Validator for business objects of Type Date

See Also:
Serialized Form

Fields inherited from class com.ibm.dse.base.types.AbstractValidator
keyValuePairs
 
Constructor Summary
DateValidator(java.util.Hashtable keyValuePairs)
          Creates a validator for business objects of Type Date.
 
Method Summary
 java.lang.Object validateForType(java.lang.Object toValidate, PropertyDescription descriptor)
          Validates the object of date type 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

DateValidator

public DateValidator(java.util.Hashtable keyValuePairs)
Creates a validator for business objects of Type Date.
Parameters:
keyValuePairs - Hashtable
Method Detail

validateForType

public java.lang.Object validateForType(java.lang.Object toValidate,
                                        PropertyDescription descriptor)
                                 throws DSETypeException
Validates the object of date type 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.