IBM Branch Transformation Toolkit Javadoc

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

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

public class FloatValidator
extends AbstractValidator

Validator for business objects of the Float 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
FloatValidator()
          This constructor creates a FloatValidator object.
FloatValidator(java.util.Hashtable keyValuePairs)
          Creates a FloatValidator object.
 
Method Summary
 java.lang.Object validateForType(java.lang.Object toValidate, PropertyDescription descriptor, Hashtable parameters)
          Validates the object of the Float 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

FloatValidator

public FloatValidator()
This constructor creates a FloatValidator object.


FloatValidator

public FloatValidator(java.util.Hashtable keyValuePairs)
Creates a FloatValidator 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 Float 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 Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005