Package com.vaadin.v7.data.validator
Class DoubleValidator
- java.lang.Object
-
- com.vaadin.v7.data.validator.AbstractValidator<String>
-
- com.vaadin.v7.data.validator.AbstractStringValidator
-
- com.vaadin.v7.data.validator.DoubleValidator
-
- All Implemented Interfaces:
Validator,Serializable
@Deprecated public class DoubleValidator extends AbstractStringValidator
Deprecated.As of 7.0. Use aStringToDoubleConverterconverter on the field instead or bind the field to aPropertyof typeDouble.String validator for a double precision floating point number. SeeAbstractStringValidatorfor more information.- Since:
- 5.4
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Validator
Validator.EmptyValueException, Validator.InvalidValueException
-
-
Constructor Summary
Constructors Constructor Description DoubleValidator(String errorMessage)Deprecated.As of 7.0.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanisValidValue(String value)Deprecated.Internally check the validity of a value.voidvalidate(Object value)Deprecated.Checks the given value against this validator.-
Methods inherited from class com.vaadin.v7.data.validator.AbstractStringValidator
getType
-
Methods inherited from class com.vaadin.v7.data.validator.AbstractValidator
getErrorMessage, isValid, isValidType, setErrorMessage
-
-
-
-
Constructor Detail
-
DoubleValidator
@Deprecated public DoubleValidator(String errorMessage)
Deprecated.As of 7.0. Use a Double converter on the field instead and/or use aDoubleRangeValidatorfor validating that the value is inside a given range.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
-
isValidValue
protected boolean isValidValue(String value)
Deprecated.Description copied from class:AbstractValidatorInternally check the validity of a value. This method can be used to perform validation in subclasses if customization of the error message is not needed. Otherwise, subclasses should overrideAbstractValidator.validate(Object)and the return value of this method is ignored. This method should not be called from outside the validator class itself.- Specified by:
isValidValuein classAbstractValidator<String>- Returns:
-
validate
public void validate(Object value) throws Validator.InvalidValueException
Deprecated.Description copied from interface:ValidatorChecks the given value against this validator. If the value is valid the method does nothing. If the value is invalid, anValidator.InvalidValueExceptionis thrown.- Specified by:
validatein interfaceValidator- Overrides:
validatein classAbstractValidator<String>- Parameters:
value- the value to check- Throws:
Validator.InvalidValueException- if the value is invalid
-
-