com.vaadin.data.validator.


Class DoubleValidator

java.lang.Object
  com.vaadin.data.validator.AbstractValidator
      com.vaadin.data.validator.AbstractStringValidator
          com.vaadin.data.validator.DoubleValidator

All Implemented Interfaces:

Validator, Serializable

public class DoubleValidator
extends AbstractStringValidator

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

Since:

5.4

Version:

6.8.18

Author:

Vaadin Ltd.

See Also:

Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.data.Validator
Validator.EmptyValueException, Validator.InvalidValueException
 
Constructor Summary
DoubleValidator(String errorMessage)
          Creates a validator for checking that a string can be parsed as an double.
 
Method Summary
protected  boolean isValidString(String value)
          Checks if the given string is valid.
 
Methods inherited from class com.vaadin.data.validator.AbstractStringValidator
isValid
 
Methods inherited from class com.vaadin.data.validator.AbstractValidator
getErrorMessage, setErrorMessage, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleValidator

public DoubleValidator(String errorMessage)

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.

Method Detail

isValidString

protected boolean isValidString(String value)

Description copied from class: AbstractStringValidator

Checks if the given string is valid.

Specified by:
isValidString in class AbstractStringValidator

Parameters:
value - String to check. Can never be null.
Returns:
true if the string is valid, false otherwise