]> source.dussan.org Git - vaadin-framework.git/commitdiff
alidator.Suggestive API was created in year 2002 to be able to create validators...
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Tue, 13 May 2008 11:39:53 +0000 (11:39 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Tue, 13 May 2008 11:39:53 +0000 (11:39 +0000)
We can make exception for backwards compatibility changes rule in this case and just drop the API as it (almost certainly) would not affect anyone.

svn changeset:4449/svn branch:trunk

src/com/itmill/toolkit/data/Validator.java

index 35cd14a39c067ddc1fd9c07953bceef614e2e178..fbdbef78cf7e236777b3da8ce7f397b97278f43b 100644 (file)
@@ -45,32 +45,6 @@ public interface Validator {
      */
     public boolean isValid(Object value);
 
-    /**
-     * Adds the proposing functionality to a {@link Validator}. A
-     * <code>Suggestive</code> validator can propose a valid value for the
-     * object it is attached to validate. This way the {@link Validatable}
-     * object may avoid situations where it contains a value that could lead to
-     * a error.
-     * 
-     * @author IT Mill Ltd.
-     * @version
-     * @VERSION@
-     * @since 3.0
-     */
-    public interface Suggestive extends Validator {
-
-        /**
-         * Suggests another value that can be used instead of the proposedValue
-         * if it is invalid. If it is valid in the opinion of this validator,
-         * however, it is returned as is.
-         * 
-         * @param proposedValue
-         *                Originally proposed value that could be invalid.
-         * @return Suggested value that's not invalid against this validator
-         */
-        public Object suggestValidValue(Object proposedValue);
-    }
-
     /**
      * Invalid value exception can be thrown by {@link Validator} when a given
      * value is not valid.