|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.data.validator.AbstractValidator<java.lang.String>
com.vaadin.data.validator.AbstractStringValidator
public abstract class AbstractStringValidator
Validator base class for validating strings.
To include the value that failed validation in the exception message you can
use "{0}" in the error message. This will be replaced with the failed value
(converted to string using Object.toString()
) or "null" if the value is
null.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.data.Validator |
---|
Validator.EmptyValueException, Validator.InvalidValueException |
Constructor Summary | |
---|---|
AbstractStringValidator(java.lang.String errorMessage)
Constructs a validator for strings. |
Method Summary | |
---|---|
java.lang.Class<java.lang.String> |
getType()
|
Methods inherited from class com.vaadin.data.validator.AbstractValidator |
---|
getErrorMessage, isValid, isValidType, isValidValue, setErrorMessage, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractStringValidator(java.lang.String errorMessage)
Null and empty string values are always accepted. To reject empty values, set the field being validated as required.
errorMessage
- the message to be included in an InvalidValueException
(with "{0}" replaced by the value that failed validation).Method Detail |
---|
public java.lang.Class<java.lang.String> getType()
getType
in class AbstractValidator<java.lang.String>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |