Package muntjac :: Package data :: Package validators :: Module double_validator :: Class DoubleValidator
[hide private]
[frames] | no frames]

Class DoubleValidator

source code

                               object --+            
                                        |            
                     validator.IValidator --+        
                                            |        
         abstract_validator.AbstractValidator --+    
                                                |    
abstract_string_validator.AbstractStringValidator --+
                                                    |
                                                   DoubleValidator

String validator for a double precision floating point number. See AbstractStringValidator for more information.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
__init__(self, errorMessage)
Creates a validator for checking that a string can be parsed as an double.
source code
 
isValidString(self, value)
Checks if the given string is valid.
source code

Inherited from abstract_string_validator.AbstractStringValidator: isValid

Inherited from abstract_validator.AbstractValidator: getErrorMessage, setErrorMessage, validate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, errorMessage)
(Constructor)

source code 

Creates a validator for checking that a string can be parsed as an double.

Parameters:
  • errorMessage - the message to display in case the value does not validate.
Overrides: object.__init__

isValidString(self, value)

source code 

Checks if the given string is valid.

Parameters:
  • value - String to check. Can never be None.
Returns:
true if the string is valid, false otherwise
Overrides: abstract_string_validator.AbstractStringValidator.isValidString
(inherited documentation)