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

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

public class StringValidator
extends AbstractValidator

Validator for business objects of Type String

See Also:
Serialized Form

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

StringValidator

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

validateForType

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