com.vaadin.data.validator
Class IntegerValidator
java.lang.Object
com.vaadin.data.validator.AbstractValidator<String>
com.vaadin.data.validator.AbstractStringValidator
com.vaadin.data.validator.IntegerValidator
- All Implemented Interfaces:
- Validator, Serializable
Deprecated. in Vaadin 7.0. Use an Integer converter on the field instead.
@Deprecated
public class IntegerValidator
- extends AbstractStringValidator
String validator for integers. See
AbstractStringValidator
for more
information.
- Since:
- 5.4
- Version:
- 7.0.0.alpha3
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
Constructor Summary |
IntegerValidator(String errorMessage)
Deprecated. in Vaadin 7.0. Use an Integer converter on the field instead
and/or use an IntegerRangeValidator for validating
that the value is inside a given range. |
Method Summary |
protected boolean |
isValidValue(String value)
Deprecated. Internally check the validity of a value. |
void |
validate(Object value)
Deprecated. Checks the given value against this validator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerValidator
@Deprecated
public IntegerValidator(String errorMessage)
- Deprecated. in Vaadin 7.0. Use an Integer converter on the field instead
and/or use an
IntegerRangeValidator
for validating
that the value is inside a given range.
- Creates a validator for checking that a string can be parsed as an
integer.
- Parameters:
errorMessage
- the message to display in case the value does not validate.
isValidValue
protected boolean isValidValue(String value)
- Deprecated.
- Description copied from class:
AbstractValidator
- Internally 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 override
AbstractValidator.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:
isValidValue
in class AbstractValidator<String>
- Returns:
validate
public void validate(Object value)
throws Validator.InvalidValueException
- Deprecated.
- Description copied from interface:
Validator
- Checks the given value against this validator. If the value is valid the
method does nothing. If the value is invalid, an
Validator.InvalidValueException
is thrown.
- Specified by:
validate
in interface Validator
- Overrides:
validate
in class AbstractValidator<String>
- Parameters:
value
- the value to check
- Throws:
Validator.InvalidValueException
- if the value is invalid
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.