Removed EXPERIMENTAL flag from GWT validation. Cleaned up all JavaDoc comments to reflect this change. Review at http://gwt-code-reviews.appspot.com/1811803 git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@11228 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/validation/client/AbstractGwtValidatorFactory.java b/user/src/com/google/gwt/validation/client/AbstractGwtValidatorFactory.java index 7d08b2d..107c3df 100644 --- a/user/src/com/google/gwt/validation/client/AbstractGwtValidatorFactory.java +++ b/user/src/com/google/gwt/validation/client/AbstractGwtValidatorFactory.java
@@ -28,9 +28,6 @@ import javax.validation.spi.ConfigurationState; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Abstract {@link ValidatorFactory} that delegates to a GWT generated * {@link Validator}. * <p>
diff --git a/user/src/com/google/gwt/validation/client/AbstractValidationMessageResolver.java b/user/src/com/google/gwt/validation/client/AbstractValidationMessageResolver.java index f922e7c..6c7eaa0 100644 --- a/user/src/com/google/gwt/validation/client/AbstractValidationMessageResolver.java +++ b/user/src/com/google/gwt/validation/client/AbstractValidationMessageResolver.java
@@ -20,9 +20,6 @@ import java.util.MissingResourceException; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * ValidationMessageResolver using a {@link ConstantsWithLookup} source. */ public abstract class AbstractValidationMessageResolver {
diff --git a/user/src/com/google/gwt/validation/client/BaseMessageInterpolator.java b/user/src/com/google/gwt/validation/client/BaseMessageInterpolator.java index 94031f8..4b42bb4 100644 --- a/user/src/com/google/gwt/validation/client/BaseMessageInterpolator.java +++ b/user/src/com/google/gwt/validation/client/BaseMessageInterpolator.java
@@ -25,9 +25,6 @@ import javax.validation.MessageInterpolator; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Base GWT {@link MessageInterpolator}. */ abstract class BaseMessageInterpolator implements MessageInterpolator { @@ -48,6 +45,7 @@ final Map<String, Object> map) { return new Function<String, String>() { + @Override public String apply(String from) { Object object = map.get(from); return object == null ? null : object.toString(); @@ -58,6 +56,7 @@ private static Function<String, String> createReplacer( final ValidationMessageResolver messageResolver) { return new Function<String, String>() { + @Override public String apply(String from) { Object object = messageResolver.get(from); return object == null ? null : object.toString(); @@ -82,6 +81,7 @@ userReplacer = createReplacer(userValidationMessagesResolver); } + @Override public final String interpolate(String messageTemplate, Context context) { return gwtInterpolate(messageTemplate, context, null); }
diff --git a/user/src/com/google/gwt/validation/client/DefaultTraversableResolver.java b/user/src/com/google/gwt/validation/client/DefaultTraversableResolver.java index 6c5de69..20eae6a 100644 --- a/user/src/com/google/gwt/validation/client/DefaultTraversableResolver.java +++ b/user/src/com/google/gwt/validation/client/DefaultTraversableResolver.java
@@ -22,9 +22,6 @@ import javax.validation.TraversableResolver; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Default {@link TraversableResolver}. Always allows full traversal. */ public final class DefaultTraversableResolver implements TraversableResolver {
diff --git a/user/src/com/google/gwt/validation/client/GwtConstraintValidatorFactory.java b/user/src/com/google/gwt/validation/client/GwtConstraintValidatorFactory.java index cdaeab2..b4e36b6 100644 --- a/user/src/com/google/gwt/validation/client/GwtConstraintValidatorFactory.java +++ b/user/src/com/google/gwt/validation/client/GwtConstraintValidatorFactory.java
@@ -19,9 +19,6 @@ import javax.validation.ConstraintValidatorFactory; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * GWT does not support {@link ConstraintValidatorFactory} use * {@link com.google.gwt.core.client.GWT#create(Class) GWT.create(Class)} instead. Using this * class throws a {@link UnsupportedOperationException}.
diff --git a/user/src/com/google/gwt/validation/client/GwtMessageInterpolator.java b/user/src/com/google/gwt/validation/client/GwtMessageInterpolator.java index bb114ca..a49c126 100644 --- a/user/src/com/google/gwt/validation/client/GwtMessageInterpolator.java +++ b/user/src/com/google/gwt/validation/client/GwtMessageInterpolator.java
@@ -20,9 +20,6 @@ import java.util.Locale; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Simple GWT {@link javax.validation.MessageInterpolator}. */ public final class GwtMessageInterpolator extends BaseMessageInterpolator { @@ -49,6 +46,7 @@ super(userValidationMessagesResolver); } + @Override public final String interpolate(String messageTemplate, Context context, Locale locale) { // The super sourced GWT version of this calls
diff --git a/user/src/com/google/gwt/validation/client/GwtValidation.java b/user/src/com/google/gwt/validation/client/GwtValidation.java index 53bb07e..cf06c3a 100644 --- a/user/src/com/google/gwt/validation/client/GwtValidation.java +++ b/user/src/com/google/gwt/validation/client/GwtValidation.java
@@ -25,17 +25,15 @@ import javax.validation.groups.Default; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Annotates a {@code javax.validation.Validator} explicitly listing the classes * that can be validated in GWT. * <p> - * Define the Validator you want, explicitly listing the class you want to - * validate. + * Define the Validator you want, explicitly listing the classes and groups + * you want to validate. * * <pre> - * @GwtValidation(MyBean.class, MyOther.class) + * @GwtValidation(value = {MyBean.class, MyOther.class}, + * groups = {Default.class, OtherGroup.class}) * public interface MyValidator extends javax.validation.Validator { * } * </pre> @@ -49,6 +47,12 @@ * </pre> * * <p> + * You must list all validation groups you are using (as well as groups + * making up a group sequence)– unless you are only using the Default group, + * in which case you may omit the "groups" field of the {@link GwtValidation} + * annotation. + * + * <p> * NOTE: Validation is done using only the Constraints found on the Classes * listed in the annotation. If you have *
diff --git a/user/src/com/google/gwt/validation/client/GwtValidationProviderResolver.java b/user/src/com/google/gwt/validation/client/GwtValidationProviderResolver.java index 18aa7de..0bdafd9 100644 --- a/user/src/com/google/gwt/validation/client/GwtValidationProviderResolver.java +++ b/user/src/com/google/gwt/validation/client/GwtValidationProviderResolver.java
@@ -25,9 +25,6 @@ import javax.validation.spi.ValidationProvider; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * The default GWT {@link ValidationProviderResolver}. This always returns the * single default ValidationProvider using {@link GWT#create(Class)}. */ @@ -44,6 +41,7 @@ return temp; } + @Override public List<ValidationProvider<?>> getValidationProviders() { return defaultList; }
diff --git a/user/src/com/google/gwt/validation/client/ProviderValidationMessageResolver.java b/user/src/com/google/gwt/validation/client/ProviderValidationMessageResolver.java index 08d9d4f..51a461c 100644 --- a/user/src/com/google/gwt/validation/client/ProviderValidationMessageResolver.java +++ b/user/src/com/google/gwt/validation/client/ProviderValidationMessageResolver.java
@@ -16,9 +16,6 @@ package com.google.gwt.validation.client; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Validation Providers implement this to resolve Validation Messages. */ public interface ProviderValidationMessageResolver extends ValidationMessageResolver {
diff --git a/user/src/com/google/gwt/validation/client/UserValidationMessagesResolver.java b/user/src/com/google/gwt/validation/client/UserValidationMessagesResolver.java index a96e84e..41a0620 100644 --- a/user/src/com/google/gwt/validation/client/UserValidationMessagesResolver.java +++ b/user/src/com/google/gwt/validation/client/UserValidationMessagesResolver.java
@@ -16,9 +16,6 @@ package com.google.gwt.validation.client; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Validation Providers implement this to resolve Validation Messages. including * overriding the default {@link ProviderValidationMessageResolver}. */
diff --git a/user/src/com/google/gwt/validation/client/ValidationMessageResolver.java b/user/src/com/google/gwt/validation/client/ValidationMessageResolver.java index e8f33ad..37020b9 100644 --- a/user/src/com/google/gwt/validation/client/ValidationMessageResolver.java +++ b/user/src/com/google/gwt/validation/client/ValidationMessageResolver.java
@@ -16,9 +16,6 @@ package com.google.gwt.validation.client; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Users and Validation providers implement this to resolve ValidationMessages. */ public interface ValidationMessageResolver {
diff --git a/user/src/com/google/gwt/validation/client/constraints/AbstractDecimalMaxValidator.java b/user/src/com/google/gwt/validation/client/constraints/AbstractDecimalMaxValidator.java index a6796a0..4bdf8c0 100644 --- a/user/src/com/google/gwt/validation/client/constraints/AbstractDecimalMaxValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/AbstractDecimalMaxValidator.java
@@ -36,6 +36,7 @@ super(); } + @Override public final void initialize(DecimalMax constraintAnnotation) { try { max = new BigDecimal(constraintAnnotation.value());
diff --git a/user/src/com/google/gwt/validation/client/constraints/AbstractDecimalMinValidator.java b/user/src/com/google/gwt/validation/client/constraints/AbstractDecimalMinValidator.java index c0c6748..6f1d949 100644 --- a/user/src/com/google/gwt/validation/client/constraints/AbstractDecimalMinValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/AbstractDecimalMinValidator.java
@@ -31,6 +31,7 @@ private BigDecimal min; + @Override public final void initialize(DecimalMin constraintAnnotation) { try { min = new BigDecimal(constraintAnnotation.value());
diff --git a/user/src/com/google/gwt/validation/client/constraints/AbstractDigitsValidator.java b/user/src/com/google/gwt/validation/client/constraints/AbstractDigitsValidator.java index 3b21514..0607706 100644 --- a/user/src/com/google/gwt/validation/client/constraints/AbstractDigitsValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/AbstractDigitsValidator.java
@@ -32,6 +32,7 @@ private int fraction; private int integer; + @Override public final void initialize(Digits constraintAnnotation) { if (!(constraintAnnotation.fraction() >= 0)) { throw new IllegalArgumentException(
diff --git a/user/src/com/google/gwt/validation/client/constraints/AbstractMaxValidator.java b/user/src/com/google/gwt/validation/client/constraints/AbstractMaxValidator.java index 5465269..f6a8799 100644 --- a/user/src/com/google/gwt/validation/client/constraints/AbstractMaxValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/AbstractMaxValidator.java
@@ -22,6 +22,7 @@ import javax.validation.constraints.Max; /** + * Abstract {@link Max} constraint validator implementation for a <code>T</code>. * * @param <T> the type of object to validate */ @@ -30,6 +31,7 @@ private long max; + @Override public final void initialize(Max constraintAnnotation) { max = constraintAnnotation.value(); }
diff --git a/user/src/com/google/gwt/validation/client/constraints/AbstractMinValidator.java b/user/src/com/google/gwt/validation/client/constraints/AbstractMinValidator.java index 0fab154..78de274 100644 --- a/user/src/com/google/gwt/validation/client/constraints/AbstractMinValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/AbstractMinValidator.java
@@ -22,8 +22,7 @@ import javax.validation.constraints.Min; /** - * Abstract {@link Min} constraint validator implementation for a <code>T</code> - * . + * Abstract {@link Min} constraint validator implementation for a <code>T</code>. * * @param <T> the type of object to validate */ @@ -32,6 +31,7 @@ private long min; + @Override public final void initialize(Min constraintAnnotation) { min = constraintAnnotation.value(); }
diff --git a/user/src/com/google/gwt/validation/client/constraints/AbstractSizeValidator.java b/user/src/com/google/gwt/validation/client/constraints/AbstractSizeValidator.java index 43d38b5..034b327 100644 --- a/user/src/com/google/gwt/validation/client/constraints/AbstractSizeValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/AbstractSizeValidator.java
@@ -33,6 +33,7 @@ super(); } + @Override public final void initialize(Size annotation) { if (!(annotation.min() >= 0)) { throw new IllegalArgumentException(
diff --git a/user/src/com/google/gwt/validation/client/constraints/AssertFalseValidator.java b/user/src/com/google/gwt/validation/client/constraints/AssertFalseValidator.java index 8a29e01..7d5dfa6 100644 --- a/user/src/com/google/gwt/validation/client/constraints/AssertFalseValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/AssertFalseValidator.java
@@ -20,17 +20,16 @@ import javax.validation.constraints.AssertFalse; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link AssertFalse} constraint validator implementation. */ public class AssertFalseValidator implements ConstraintValidator<AssertFalse, Boolean> { + @Override public final void initialize(AssertFalse constraintAnnotation) { } + @Override public final boolean isValid(Boolean value, ConstraintValidatorContext context) { return value == null || !value.booleanValue(); }
diff --git a/user/src/com/google/gwt/validation/client/constraints/AssertTrueValidator.java b/user/src/com/google/gwt/validation/client/constraints/AssertTrueValidator.java index c9d1f3f..0025007 100644 --- a/user/src/com/google/gwt/validation/client/constraints/AssertTrueValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/AssertTrueValidator.java
@@ -20,17 +20,16 @@ import javax.validation.constraints.AssertTrue; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link AssertTrue} constraint validator implementation. */ public class AssertTrueValidator implements ConstraintValidator<AssertTrue, Boolean> { + @Override public final void initialize(AssertTrue constraintAnnotation) { } + @Override public final boolean isValid(Boolean value, ConstraintValidatorContext context) { return value == null || value.booleanValue(); }
diff --git a/user/src/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForNumber.java b/user/src/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForNumber.java index 239c177..992b1f9 100644 --- a/user/src/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForNumber.java +++ b/user/src/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForNumber.java
@@ -21,15 +21,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.DecimalMax} constraint validator * implementation for a {@link Number}. */ public class DecimalMaxValidatorForNumber extends AbstractDecimalMaxValidator<Number> { + @Override public final boolean isValid(Number value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForString.java b/user/src/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForString.java index 9b47c5c..cd23b74 100644 --- a/user/src/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForString.java +++ b/user/src/com/google/gwt/validation/client/constraints/DecimalMaxValidatorForString.java
@@ -20,15 +20,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.DecimalMax} constraint validator * implementation for a {@link String}. */ public class DecimalMaxValidatorForString extends AbstractDecimalMaxValidator<String> { + @Override public final boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/DecimalMinValidatorForNumber.java b/user/src/com/google/gwt/validation/client/constraints/DecimalMinValidatorForNumber.java index 2c47788..933e5eb 100644 --- a/user/src/com/google/gwt/validation/client/constraints/DecimalMinValidatorForNumber.java +++ b/user/src/com/google/gwt/validation/client/constraints/DecimalMinValidatorForNumber.java
@@ -21,15 +21,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.DecimalMin} constraint validator * implementation for a {@link Number}. */ public class DecimalMinValidatorForNumber extends AbstractDecimalMinValidator<Number> { + @Override public final boolean isValid(Number value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/DecimalMinValidatorForString.java b/user/src/com/google/gwt/validation/client/constraints/DecimalMinValidatorForString.java index 2a1e33a..cb7a46e 100644 --- a/user/src/com/google/gwt/validation/client/constraints/DecimalMinValidatorForString.java +++ b/user/src/com/google/gwt/validation/client/constraints/DecimalMinValidatorForString.java
@@ -20,15 +20,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.DecimalMax} constraint validator * implementation for a {@link String}. */ public class DecimalMinValidatorForString extends AbstractDecimalMinValidator<String> { + @Override public final boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/DigitsValidatorForNumber.java b/user/src/com/google/gwt/validation/client/constraints/DigitsValidatorForNumber.java index 5282e7d..aaa27e6 100644 --- a/user/src/com/google/gwt/validation/client/constraints/DigitsValidatorForNumber.java +++ b/user/src/com/google/gwt/validation/client/constraints/DigitsValidatorForNumber.java
@@ -21,15 +21,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Digits} constraint validator * implementation for a {@link Number}. */ public class DigitsValidatorForNumber extends AbstractDigitsValidator<Number> { + @Override public final boolean isValid(Number value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/DigitsValidatorForString.java b/user/src/com/google/gwt/validation/client/constraints/DigitsValidatorForString.java index a52fc05..2a2804a 100644 --- a/user/src/com/google/gwt/validation/client/constraints/DigitsValidatorForString.java +++ b/user/src/com/google/gwt/validation/client/constraints/DigitsValidatorForString.java
@@ -20,15 +20,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Digits} constraint validator * implementation for a {@link String}. */ public class DigitsValidatorForString extends AbstractDigitsValidator<String> { + @Override public final boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/FutureValidatorForDate.java b/user/src/com/google/gwt/validation/client/constraints/FutureValidatorForDate.java index 5a7fa66..4d3dfef 100644 --- a/user/src/com/google/gwt/validation/client/constraints/FutureValidatorForDate.java +++ b/user/src/com/google/gwt/validation/client/constraints/FutureValidatorForDate.java
@@ -22,18 +22,17 @@ import javax.validation.constraints.Future; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link Future} constraint validator implementation for a * {@link java.util.Date}. */ public class FutureValidatorForDate implements ConstraintValidator<Future, Date> { + @Override public final void initialize(Future constraintAnnotation) { } + @Override public final boolean isValid(Date value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/MaxValidatorForNumber.java b/user/src/com/google/gwt/validation/client/constraints/MaxValidatorForNumber.java index bfea94c..d464afa 100644 --- a/user/src/com/google/gwt/validation/client/constraints/MaxValidatorForNumber.java +++ b/user/src/com/google/gwt/validation/client/constraints/MaxValidatorForNumber.java
@@ -18,14 +18,12 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Max} constraint validator implementation * for a {@link Number}. */ public class MaxValidatorForNumber extends AbstractMaxValidator<Number> { + @Override public final boolean isValid(Number value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/MaxValidatorForString.java b/user/src/com/google/gwt/validation/client/constraints/MaxValidatorForString.java index 91aee3f..6b085be 100644 --- a/user/src/com/google/gwt/validation/client/constraints/MaxValidatorForString.java +++ b/user/src/com/google/gwt/validation/client/constraints/MaxValidatorForString.java
@@ -20,14 +20,12 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Max} constraint validator implementation * for a {@link String}. */ public class MaxValidatorForString extends AbstractMaxValidator<String> { + @Override public final boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/MinValidatorForNumber.java b/user/src/com/google/gwt/validation/client/constraints/MinValidatorForNumber.java index 5c0f097..1fd8a0e 100644 --- a/user/src/com/google/gwt/validation/client/constraints/MinValidatorForNumber.java +++ b/user/src/com/google/gwt/validation/client/constraints/MinValidatorForNumber.java
@@ -18,14 +18,12 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Min} constraint validator implementation * for a {@link Number}. */ public class MinValidatorForNumber extends AbstractMinValidator<Number> { + @Override public final boolean isValid(Number value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/MinValidatorForString.java b/user/src/com/google/gwt/validation/client/constraints/MinValidatorForString.java index ca0c0c4..0203771 100644 --- a/user/src/com/google/gwt/validation/client/constraints/MinValidatorForString.java +++ b/user/src/com/google/gwt/validation/client/constraints/MinValidatorForString.java
@@ -20,14 +20,12 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Min} constraint validator implementation * for a {@link String}. */ public class MinValidatorForString extends AbstractMinValidator<String> { + @Override public final boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/NotGwtCompatibleValidator.java b/user/src/com/google/gwt/validation/client/constraints/NotGwtCompatibleValidator.java index 140cd5a..c70703d 100644 --- a/user/src/com/google/gwt/validation/client/constraints/NotGwtCompatibleValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/NotGwtCompatibleValidator.java
@@ -21,23 +21,8 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Masks a {@link ConstraintValidator} that is not GWT compatible. This * validator always fails. - * <p> - * Extend this class and implement it as GWT super class. Use validation groups - * to keep this constraint from being validated on the client. - * - * <p> - * In a super source directory override your validator like this: - * - * <pre> - * public class MyValidator extends - * NotGwtCompatibleValidator <MyConstraint, MyType>{ - * } - * </pre> * * @param <A> the constraint to validate * @param <T> the type to validate @@ -45,12 +30,14 @@ public abstract class NotGwtCompatibleValidator<A extends Annotation, T> implements ConstraintValidator<A, T> { + @Override public final void initialize(A constraintAnnotation) { } /** * Always fails. */ + @Override public final boolean isValid(T value, ConstraintValidatorContext context) { // TODO (nchalko) add a custom message return false;
diff --git a/user/src/com/google/gwt/validation/client/constraints/NotNullValidator.java b/user/src/com/google/gwt/validation/client/constraints/NotNullValidator.java index b8d76fb..06d903e 100644 --- a/user/src/com/google/gwt/validation/client/constraints/NotNullValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/NotNullValidator.java
@@ -20,17 +20,16 @@ import javax.validation.constraints.NotNull; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link NotNull} constraint validator implementation. */ public class NotNullValidator implements ConstraintValidator<NotNull, Object> { + @Override public final void initialize(NotNull constraintAnnotation) { } + @Override public final boolean isValid(Object value, ConstraintValidatorContext context) { return value != null; }
diff --git a/user/src/com/google/gwt/validation/client/constraints/NullValidator.java b/user/src/com/google/gwt/validation/client/constraints/NullValidator.java index 751173b..d6bb3e0 100644 --- a/user/src/com/google/gwt/validation/client/constraints/NullValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/NullValidator.java
@@ -20,16 +20,15 @@ import javax.validation.constraints.Null; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link Null} constraint validator implementation. */ public class NullValidator implements ConstraintValidator<Null, Object> { + @Override public final void initialize(Null constraintAnnotation) { } + @Override public final boolean isValid(Object value, ConstraintValidatorContext context) { return value == null; }
diff --git a/user/src/com/google/gwt/validation/client/constraints/PastValidatorForDate.java b/user/src/com/google/gwt/validation/client/constraints/PastValidatorForDate.java index 53f5010..29e0999 100644 --- a/user/src/com/google/gwt/validation/client/constraints/PastValidatorForDate.java +++ b/user/src/com/google/gwt/validation/client/constraints/PastValidatorForDate.java
@@ -22,17 +22,16 @@ import javax.validation.constraints.Past; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link Past} constraint validator implementation for a {@link java.util.Date}. */ public class PastValidatorForDate implements ConstraintValidator<Past, Date> { + @Override public final void initialize(Past constraintAnnotation) { } + @Override public final boolean isValid(Date value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/PatternValidator.java b/user/src/com/google/gwt/validation/client/constraints/PatternValidator.java index e9093c8..0ca57da 100644 --- a/user/src/com/google/gwt/validation/client/constraints/PatternValidator.java +++ b/user/src/com/google/gwt/validation/client/constraints/PatternValidator.java
@@ -24,9 +24,6 @@ import javax.validation.constraints.Pattern.Flag; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link Pattern} constraint validator implementation. * <p> * Note this implementation uses {@link RegExp} which differs from @@ -36,6 +33,7 @@ ConstraintValidator<Pattern, String> { private RegExp pattern; + @Override public final void initialize(Pattern annotation) { Pattern.Flag flags[] = annotation.flags(); String flagString = ""; @@ -45,6 +43,7 @@ pattern = RegExp.compile(annotation.regexp(), flagString); } + @Override public final boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfBoolean.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfBoolean.java index ce523f5..57f2581 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfBoolean.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfBoolean.java
@@ -18,15 +18,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a array of {@code boolean}s. */ public class SizeValidatorForArrayOfBoolean extends AbstractSizeValidator<boolean[]> { + @Override public final boolean isValid(boolean[] value, ConstraintValidatorContext context) { if (value == null) {
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfByte.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfByte.java index 68506c1..4524fa4 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfByte.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfByte.java
@@ -18,15 +18,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a array of {@code byte}s. */ public class SizeValidatorForArrayOfByte extends AbstractSizeValidator<byte[]> { + @Override public final boolean isValid(byte[] value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfChar.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfChar.java index a1ffc4b..6b53dd4 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfChar.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfChar.java
@@ -18,15 +18,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a array of {@code char}s. */ public class SizeValidatorForArrayOfChar extends AbstractSizeValidator<char[]> { + @Override public final boolean isValid(char[] value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfDouble.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfDouble.java index 486056e..5f45135 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfDouble.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfDouble.java
@@ -18,15 +18,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a array of {@code double}s. */ public class SizeValidatorForArrayOfDouble extends AbstractSizeValidator<double[]> { + @Override public final boolean isValid(double[] value, ConstraintValidatorContext context) { if (value == null) {
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfFloat.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfFloat.java index 09c5e0e..21797e6 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfFloat.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfFloat.java
@@ -18,15 +18,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a array of {@code float}s. */ public class SizeValidatorForArrayOfFloat extends AbstractSizeValidator<float[]> { + @Override public final boolean isValid(float[] value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfInt.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfInt.java index ad0af0c..a30746c 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfInt.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfInt.java
@@ -18,15 +18,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a array of {@code int}s. */ public class SizeValidatorForArrayOfInt extends AbstractSizeValidator<int[]> { + @Override public final boolean isValid(int[] value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfLong.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfLong.java index 6905984..d30691e 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfLong.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfLong.java
@@ -18,15 +18,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a array of {@code long}s. */ public class SizeValidatorForArrayOfLong extends AbstractSizeValidator<long[]> { + @Override public final boolean isValid(long[] value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfObject.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfObject.java index 58b0f50..02b6fa8 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfObject.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfObject.java
@@ -18,15 +18,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a array of {@link Object}s. */ public class SizeValidatorForArrayOfObject extends AbstractSizeValidator<Object[]> { + @Override public final boolean isValid(Object[] value, ConstraintValidatorContext context) { if (value == null) {
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfShort.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfShort.java index 4bef589..9d6e25d 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfShort.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForArrayOfShort.java
@@ -18,15 +18,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a array of {@code short}s. */ public class SizeValidatorForArrayOfShort extends AbstractSizeValidator<short[]> { + @Override public final boolean isValid(short[] value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForCollection.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForCollection.java index 6914c3d..b41fb05 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForCollection.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForCollection.java
@@ -20,15 +20,13 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a {@link Collection}. */ public class SizeValidatorForCollection extends AbstractSizeValidator<Collection<?>> { + @Override public final boolean isValid(Collection<?> value, ConstraintValidatorContext context) { if (value == null) {
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForMap.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForMap.java index ccf1c6c..2a63413 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForMap.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForMap.java
@@ -20,14 +20,12 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a {@link Map}. */ public class SizeValidatorForMap extends AbstractSizeValidator<Map<?, ?>> { + @Override public final boolean isValid(Map<?, ?> value, ConstraintValidatorContext context) { if (value == null) {
diff --git a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForString.java b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForString.java index 4ad9c47..d20ddb1 100644 --- a/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForString.java +++ b/user/src/com/google/gwt/validation/client/constraints/SizeValidatorForString.java
@@ -18,14 +18,12 @@ import javax.validation.ConstraintValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * {@link javax.validation.constraints.Size} constraint validator implementation * for a {@link String}. */ public class SizeValidatorForString extends AbstractSizeValidator<String> { + @Override public final boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true;
diff --git a/user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java b/user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java index dd82cec..36e3616 100644 --- a/user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java +++ b/user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java
@@ -38,9 +38,6 @@ import javax.validation.groups.Default; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Base methods for implementing a {@link GwtSpecificValidator}. * <p> * All methods that do not need to be generated go here.
diff --git a/user/src/com/google/gwt/validation/client/impl/AbstractGwtValidator.java b/user/src/com/google/gwt/validation/client/impl/AbstractGwtValidator.java index bc9035c..48f1806 100644 --- a/user/src/com/google/gwt/validation/client/impl/AbstractGwtValidator.java +++ b/user/src/com/google/gwt/validation/client/impl/AbstractGwtValidator.java
@@ -29,9 +29,6 @@ import javax.validation.Validator; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Base methods for implementing {@link Validator} in GWT. * <p> * All methods that do not need to be generated go here.
diff --git a/user/src/com/google/gwt/validation/client/impl/BaseGwtConfiguration.java b/user/src/com/google/gwt/validation/client/impl/BaseGwtConfiguration.java index 9beb921..4279e27 100644 --- a/user/src/com/google/gwt/validation/client/impl/BaseGwtConfiguration.java +++ b/user/src/com/google/gwt/validation/client/impl/BaseGwtConfiguration.java
@@ -31,9 +31,6 @@ import javax.validation.spi.BootstrapState; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Base GWT {@link Configuration}. */ public abstract class BaseGwtConfiguration implements
diff --git a/user/src/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java b/user/src/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java index 91bcd9f..e42e82a 100644 --- a/user/src/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java +++ b/user/src/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java
@@ -28,9 +28,6 @@ import javax.validation.metadata.ConstraintDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * A immutable GWT implementation of {@link ConstraintDescriptor}. * * @param <T> the constraint annotation to describe.
diff --git a/user/src/com/google/gwt/validation/client/impl/ConstraintFinderImpl.java b/user/src/com/google/gwt/validation/client/impl/ConstraintFinderImpl.java index 0284ff6..9964487 100644 --- a/user/src/com/google/gwt/validation/client/impl/ConstraintFinderImpl.java +++ b/user/src/com/google/gwt/validation/client/impl/ConstraintFinderImpl.java
@@ -33,9 +33,7 @@ import javax.validation.metadata.ElementDescriptor.ConstraintFinder; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> + * Finds constraints declared on an element using specified criteria. */ public final class ConstraintFinderImpl implements ConstraintFinder { private Set<ConstraintDescriptorImpl<?>> constraintDescriptors;
diff --git a/user/src/com/google/gwt/validation/client/impl/ConstraintOrigin.java b/user/src/com/google/gwt/validation/client/impl/ConstraintOrigin.java index d9423d8..b12caf7 100644 --- a/user/src/com/google/gwt/validation/client/impl/ConstraintOrigin.java +++ b/user/src/com/google/gwt/validation/client/impl/ConstraintOrigin.java
@@ -16,14 +16,12 @@ package com.google.gwt.validation.client.impl; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Visibility looked at when discovering constraints. * <p> * Exactly the same as the * <a href="http://docs.jboss.org/hibernate/validator/4.3/api/org/hibernate/validator/internal/metadata/core/ConstraintOrigin.html"> * Hibernate implementation</a>. + * Duplicated here to avoid dependency. */ public enum ConstraintOrigin { /**
diff --git a/user/src/com/google/gwt/validation/client/impl/ConstraintValidatorContextImpl.java b/user/src/com/google/gwt/validation/client/impl/ConstraintValidatorContextImpl.java index 654ad1d..18b570d 100644 --- a/user/src/com/google/gwt/validation/client/impl/ConstraintValidatorContextImpl.java +++ b/user/src/com/google/gwt/validation/client/impl/ConstraintValidatorContextImpl.java
@@ -29,9 +29,6 @@ import javax.validation.metadata.ConstraintDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * GWT safe immutable implementation of {@link ConstraintValidatorContext} * <p> * These objects are very short lived.
diff --git a/user/src/com/google/gwt/validation/client/impl/ConstraintViolationImpl.java b/user/src/com/google/gwt/validation/client/impl/ConstraintViolationImpl.java index 038775d..ad2ad1b 100644 --- a/user/src/com/google/gwt/validation/client/impl/ConstraintViolationImpl.java +++ b/user/src/com/google/gwt/validation/client/impl/ConstraintViolationImpl.java
@@ -23,9 +23,6 @@ import javax.validation.metadata.ConstraintDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * An implementation of {@link ConstraintViolation}. * * @param <T> the type of bean validated.
diff --git a/user/src/com/google/gwt/validation/client/impl/Group.java b/user/src/com/google/gwt/validation/client/impl/Group.java index 7f02540..ccb7fad 100644 --- a/user/src/com/google/gwt/validation/client/impl/Group.java +++ b/user/src/com/google/gwt/validation/client/impl/Group.java
@@ -18,9 +18,6 @@ import javax.validation.groups.Default; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Encapsulates a single validation group. * <p> * Modified from the Hibernate validator for use with GWT.
diff --git a/user/src/com/google/gwt/validation/client/impl/GroupChain.java b/user/src/com/google/gwt/validation/client/impl/GroupChain.java index 7afb0e7..d177bc4 100644 --- a/user/src/com/google/gwt/validation/client/impl/GroupChain.java +++ b/user/src/com/google/gwt/validation/client/impl/GroupChain.java
@@ -26,9 +26,6 @@ import javax.validation.groups.Default; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * An instance of {@code GroupChain} defines the group order during one full validation call. * <p> * Modified from the Hibernate validator for use with GWT.
diff --git a/user/src/com/google/gwt/validation/client/impl/GroupChainGenerator.java b/user/src/com/google/gwt/validation/client/impl/GroupChainGenerator.java index c60aefb..594de06 100644 --- a/user/src/com/google/gwt/validation/client/impl/GroupChainGenerator.java +++ b/user/src/com/google/gwt/validation/client/impl/GroupChainGenerator.java
@@ -28,10 +28,8 @@ import javax.validation.ValidationException; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> - * Helper class used to resolve groups and sequences into a single chain of groups which can then be validated. + * Helper class used to resolve groups and sequences into a single chain of groups which can then + * be validated. * <p> * Modified from the Hibernate validator for use with GWT. */
diff --git a/user/src/com/google/gwt/validation/client/impl/GroupValidator.java b/user/src/com/google/gwt/validation/client/impl/GroupValidator.java index d721e30..34ad2d5 100644 --- a/user/src/com/google/gwt/validation/client/impl/GroupValidator.java +++ b/user/src/com/google/gwt/validation/client/impl/GroupValidator.java
@@ -21,9 +21,6 @@ import javax.validation.ConstraintViolation; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Does shallow group-specific validation. Group sequences and Default group overriding are not * directly supported by implementations of this interface. Instead, this is used by higher-level * validators to delegate the validation of specific areas.
diff --git a/user/src/com/google/gwt/validation/client/impl/GwtBeanDescriptor.java b/user/src/com/google/gwt/validation/client/impl/GwtBeanDescriptor.java index cde791f..50b3a33 100644 --- a/user/src/com/google/gwt/validation/client/impl/GwtBeanDescriptor.java +++ b/user/src/com/google/gwt/validation/client/impl/GwtBeanDescriptor.java
@@ -20,9 +20,6 @@ import javax.validation.metadata.BeanDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Marker interface used by GWT to generate a {@link BeanDescriptor} for a * specific class T. *
diff --git a/user/src/com/google/gwt/validation/client/impl/GwtBeanDescriptorImpl.java b/user/src/com/google/gwt/validation/client/impl/GwtBeanDescriptorImpl.java index cebb620..e3f7661 100644 --- a/user/src/com/google/gwt/validation/client/impl/GwtBeanDescriptorImpl.java +++ b/user/src/com/google/gwt/validation/client/impl/GwtBeanDescriptorImpl.java
@@ -29,9 +29,6 @@ import javax.validation.metadata.PropertyDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Abstract BeanDescriptor for use by generated {@link GwtBeanDescriptor}. * <p> * Subclasses are expected to call setDescriptorMap from the constructor.
diff --git a/user/src/com/google/gwt/validation/client/impl/GwtConfiguration.java b/user/src/com/google/gwt/validation/client/impl/GwtConfiguration.java index 26438e8..436ee89 100644 --- a/user/src/com/google/gwt/validation/client/impl/GwtConfiguration.java +++ b/user/src/com/google/gwt/validation/client/impl/GwtConfiguration.java
@@ -22,9 +22,6 @@ import javax.validation.spi.BootstrapState; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Extends {@link BaseGwtConfiguration} with just the parts that are not GWT * compatible. */ @@ -35,6 +32,10 @@ super(gwtValidationProvider, state); } + /** + * Unsupported. Always throws an {@link UnsupportedOperationException}. + */ + @Override public GwtConfiguration addMapping(InputStream stream) { throw new UnsupportedOperationException("GWT does not support InputStreams"); }
diff --git a/user/src/com/google/gwt/validation/client/impl/GwtSpecificValidator.java b/user/src/com/google/gwt/validation/client/impl/GwtSpecificValidator.java index 5144eff..86acd4b 100644 --- a/user/src/com/google/gwt/validation/client/impl/GwtSpecificValidator.java +++ b/user/src/com/google/gwt/validation/client/impl/GwtSpecificValidator.java
@@ -24,9 +24,6 @@ import javax.validation.ValidationException; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Defines GWT version of {@link javax.validation.Validator}. This used by * generate a specific Validator for a given class G. *
diff --git a/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java b/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java index 96dfdaa..ed8eaf7 100644 --- a/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java +++ b/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java
@@ -25,9 +25,6 @@ import javax.validation.metadata.ConstraintDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Context for a {@link com.google.gwt.validation.client.GwtValidation}. * * <p>
diff --git a/user/src/com/google/gwt/validation/client/impl/GwtValidatorContext.java b/user/src/com/google/gwt/validation/client/impl/GwtValidatorContext.java index abf5890..bf62d54 100644 --- a/user/src/com/google/gwt/validation/client/impl/GwtValidatorContext.java +++ b/user/src/com/google/gwt/validation/client/impl/GwtValidatorContext.java
@@ -24,9 +24,6 @@ import javax.validation.ValidatorContext; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * GWT {@link ValidatorContext}. */ public final class GwtValidatorContext implements ValidatorContext { @@ -56,6 +53,7 @@ traversableResolver = validatorFactory.getTraversableResolver(); } + @Override public ValidatorContext constraintValidatorFactory( ConstraintValidatorFactory constraintValidatorfactory) { if (constraintValidatorfactory == null) { @@ -66,6 +64,7 @@ return this; } + @Override public Validator getValidator() { AbstractGwtValidator validator = validatorFactory.createValidator(); validator.init(constraintValidatorfactory, messageInterpolator, @@ -73,6 +72,7 @@ return validator; } + @Override public ValidatorContext messageInterpolator( MessageInterpolator messageInterpolator) { if (messageInterpolator == null) { @@ -83,6 +83,7 @@ return this; } + @Override public ValidatorContext traversableResolver( TraversableResolver traversableResolver) { if (traversableResolver == null) {
diff --git a/user/src/com/google/gwt/validation/client/impl/MessageInterpolatorContextImpl.java b/user/src/com/google/gwt/validation/client/impl/MessageInterpolatorContextImpl.java index 64b6592..9d11063 100644 --- a/user/src/com/google/gwt/validation/client/impl/MessageInterpolatorContextImpl.java +++ b/user/src/com/google/gwt/validation/client/impl/MessageInterpolatorContextImpl.java
@@ -31,10 +31,12 @@ this.value = value; } + @Override public ConstraintDescriptor<?> getConstraintDescriptor() { return constraintDescriptor; } + @Override public Object getValidatedValue() { return value; }
diff --git a/user/src/com/google/gwt/validation/client/impl/NodeImpl.java b/user/src/com/google/gwt/validation/client/impl/NodeImpl.java index 7f59f39..dc11a4b 100644 --- a/user/src/com/google/gwt/validation/client/impl/NodeImpl.java +++ b/user/src/com/google/gwt/validation/client/impl/NodeImpl.java
@@ -20,9 +20,6 @@ import javax.validation.Path.Node; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * An immutable GWT safe implementation of {@link Node}. */ final class NodeImpl implements Node, Serializable { @@ -75,14 +72,17 @@ && this.isInIterable == that.isInIterable; } + @Override public Integer getIndex() { return index; } + @Override public Object getKey() { return key; } + @Override public String getName() { return name; } @@ -98,6 +98,7 @@ return result; } + @Override public boolean isInIterable() { return isInIterable; }
diff --git a/user/src/com/google/gwt/validation/client/impl/NullUserValidationMessageResolver.java b/user/src/com/google/gwt/validation/client/impl/NullUserValidationMessageResolver.java index c654751..d6258d1 100644 --- a/user/src/com/google/gwt/validation/client/impl/NullUserValidationMessageResolver.java +++ b/user/src/com/google/gwt/validation/client/impl/NullUserValidationMessageResolver.java
@@ -18,14 +18,12 @@ import com.google.gwt.validation.client.UserValidationMessagesResolver; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Always resolves message keys to null. */ public final class NullUserValidationMessageResolver implements UserValidationMessagesResolver { + @Override public String get(String key) { return null; }
diff --git a/user/src/com/google/gwt/validation/client/impl/PathImpl.java b/user/src/com/google/gwt/validation/client/impl/PathImpl.java index 6968a85..818c2b7 100644 --- a/user/src/com/google/gwt/validation/client/impl/PathImpl.java +++ b/user/src/com/google/gwt/validation/client/impl/PathImpl.java
@@ -23,9 +23,6 @@ import javax.validation.Path; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * An immutable GWT safe implementation of {@link Path}. */ public final class PathImpl implements Path, Serializable {
diff --git a/user/src/com/google/gwt/validation/client/impl/PropertyDescriptorImpl.java b/user/src/com/google/gwt/validation/client/impl/PropertyDescriptorImpl.java index 527e2a6..6a3aced 100644 --- a/user/src/com/google/gwt/validation/client/impl/PropertyDescriptorImpl.java +++ b/user/src/com/google/gwt/validation/client/impl/PropertyDescriptorImpl.java
@@ -26,9 +26,7 @@ import javax.validation.metadata.PropertyDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> + * Describes a constrained bean property. */ public final class PropertyDescriptorImpl implements PropertyDescriptor {
diff --git a/user/src/com/google/gwt/validation/client/impl/Validation.java b/user/src/com/google/gwt/validation/client/impl/Validation.java index cf23c4e..3bf33c9 100644 --- a/user/src/com/google/gwt/validation/client/impl/Validation.java +++ b/user/src/com/google/gwt/validation/client/impl/Validation.java
@@ -29,9 +29,6 @@ import javax.validation.spi.ValidationProvider; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * This class is the entry point for Bean Validation. Bootstrapping is done as follows: * * <pre>{@code ValidatorFactory factory = Validation.buildDefaultValidatorFactory();}</pre>
diff --git a/user/src/com/google/gwt/validation/client/impl/metadata/BeanMetadata.java b/user/src/com/google/gwt/validation/client/impl/metadata/BeanMetadata.java index 5023e70..7db686d 100644 --- a/user/src/com/google/gwt/validation/client/impl/metadata/BeanMetadata.java +++ b/user/src/com/google/gwt/validation/client/impl/metadata/BeanMetadata.java
@@ -22,10 +22,7 @@ import javax.validation.groups.Default; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> - * Describes information about a bean. + * Describes information about a bean which is used for validation purposes. */ public class BeanMetadata { private final Class<?> beanClass;
diff --git a/user/src/com/google/gwt/validation/client/impl/metadata/MessageAndPath.java b/user/src/com/google/gwt/validation/client/impl/metadata/MessageAndPath.java index ac8cd9d..a248830 100644 --- a/user/src/com/google/gwt/validation/client/impl/metadata/MessageAndPath.java +++ b/user/src/com/google/gwt/validation/client/impl/metadata/MessageAndPath.java
@@ -18,9 +18,6 @@ import javax.validation.Path; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Holds as Message and a Path. * <p> * Used to build a {@link javax.validation.ConstraintViolation}
diff --git a/user/src/com/google/gwt/validation/client/impl/metadata/ValidationGroupsMetadata.java b/user/src/com/google/gwt/validation/client/impl/metadata/ValidationGroupsMetadata.java index ff49c93..f22a1ed 100644 --- a/user/src/com/google/gwt/validation/client/impl/metadata/ValidationGroupsMetadata.java +++ b/user/src/com/google/gwt/validation/client/impl/metadata/ValidationGroupsMetadata.java
@@ -29,9 +29,6 @@ /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Contains all the information known about the inheritance information for validation groups. */ public class ValidationGroupsMetadata {
diff --git a/user/src/com/google/gwt/validation/client/spi/BaseConfigurationState.java b/user/src/com/google/gwt/validation/client/spi/BaseConfigurationState.java index e28cb1b..78caf1f 100644 --- a/user/src/com/google/gwt/validation/client/spi/BaseConfigurationState.java +++ b/user/src/com/google/gwt/validation/client/spi/BaseConfigurationState.java
@@ -24,9 +24,6 @@ import javax.validation.spi.ConfigurationState; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Base GWT implementation of {@link ConfigurationState}. */ public abstract class BaseConfigurationState implements ConfigurationState {
diff --git a/user/src/com/google/gwt/validation/client/spi/GwtConfigurationState.java b/user/src/com/google/gwt/validation/client/spi/GwtConfigurationState.java index 1496001..2820b91 100644 --- a/user/src/com/google/gwt/validation/client/spi/GwtConfigurationState.java +++ b/user/src/com/google/gwt/validation/client/spi/GwtConfigurationState.java
@@ -24,9 +24,6 @@ import javax.validation.TraversableResolver; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Only the GWT incompatible parts. */ public final class GwtConfigurationState extends BaseConfigurationState {
diff --git a/user/src/com/google/gwt/validation/client/spi/GwtValidationProvider.java b/user/src/com/google/gwt/validation/client/spi/GwtValidationProvider.java index ca24bf3..2ee502a 100644 --- a/user/src/com/google/gwt/validation/client/spi/GwtValidationProvider.java +++ b/user/src/com/google/gwt/validation/client/spi/GwtValidationProvider.java
@@ -27,9 +27,6 @@ import javax.validation.spi.ValidationProvider; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * GWT {@link ValidationProvider}. */ public final class GwtValidationProvider implements
diff --git a/user/src/com/google/gwt/validation/rebind/AbstractCreator.java b/user/src/com/google/gwt/validation/rebind/AbstractCreator.java index 82f1eed..b52e95a 100644 --- a/user/src/com/google/gwt/validation/rebind/AbstractCreator.java +++ b/user/src/com/google/gwt/validation/rebind/AbstractCreator.java
@@ -27,9 +27,6 @@ import java.io.PrintWriter; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Abstract Class for Creating source files. * <p> * This class is not thread safe.
diff --git a/user/src/com/google/gwt/validation/rebind/BeanHelper.java b/user/src/com/google/gwt/validation/rebind/BeanHelper.java index fcbb49e..4e5134f 100644 --- a/user/src/com/google/gwt/validation/rebind/BeanHelper.java +++ b/user/src/com/google/gwt/validation/rebind/BeanHelper.java
@@ -28,9 +28,6 @@ import javax.validation.metadata.PropertyDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * A simple struct for the various values associated with a Bean that can be * validated. */ @@ -38,6 +35,7 @@ public static final Function<BeanHelper, Class<?>> TO_CLAZZ = new Function<BeanHelper, Class<?>>() { + @Override public Class<?> apply(BeanHelper helper) { return helper.getClazz(); }
diff --git a/user/src/com/google/gwt/validation/rebind/BeanHelperCache.java b/user/src/com/google/gwt/validation/rebind/BeanHelperCache.java index 52780cc..1db6b9c 100644 --- a/user/src/com/google/gwt/validation/rebind/BeanHelperCache.java +++ b/user/src/com/google/gwt/validation/rebind/BeanHelperCache.java
@@ -36,13 +36,10 @@ import javax.validation.metadata.PropertyDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * - * <p> A cache and factory for BeanHelpers. There should be one BeanHelperCache per - * compilation run.</p> - * - * <p>(public for tests.)</p> + * A cache and factory for BeanHelpers. There should be one BeanHelperCache per + * compilation run. + * <p> + * (public for tests) */ public class BeanHelperCache { // public for testing
diff --git a/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java b/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java index 5c66d18..dfcd5a7 100644 --- a/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java +++ b/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java
@@ -89,9 +89,6 @@ import javax.validation.metadata.PropertyDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Creates a {@link com.google.gwt.validation.client.impl.GwtSpecificValidator}. * <p> * This class is not thread safe.
diff --git a/user/src/com/google/gwt/validation/rebind/Util.java b/user/src/com/google/gwt/validation/rebind/Util.java index 32e62a3..f24b653 100644 --- a/user/src/com/google/gwt/validation/rebind/Util.java +++ b/user/src/com/google/gwt/validation/rebind/Util.java
@@ -30,9 +30,6 @@ import java.util.Set; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Static utilities for the validation rebind package. */ final class Util { @@ -50,6 +47,7 @@ final Iterable<T> source, final Function<T, Class<?>> toClass) { return new Predicate<T>() { + @Override public boolean apply(T input) { Class<?> inputClass = toClass.apply(input); for (Class<?> match : Iterables.transform(source, toClass)) {
diff --git a/user/src/com/google/gwt/validation/rebind/ValidatorCreator.java b/user/src/com/google/gwt/validation/rebind/ValidatorCreator.java index d6ed850..3944e19 100644 --- a/user/src/com/google/gwt/validation/rebind/ValidatorCreator.java +++ b/user/src/com/google/gwt/validation/rebind/ValidatorCreator.java
@@ -43,10 +43,7 @@ import javax.validation.metadata.BeanDescriptor; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> - * Class that creates the validator for the given input class. + * Creates the validator for the given input class. */ public final class ValidatorCreator extends AbstractCreator {
diff --git a/user/src/com/google/gwt/validation/rebind/ValidatorGenerator.java b/user/src/com/google/gwt/validation/rebind/ValidatorGenerator.java index 43b71de..75727be 100644 --- a/user/src/com/google/gwt/validation/rebind/ValidatorGenerator.java +++ b/user/src/com/google/gwt/validation/rebind/ValidatorGenerator.java
@@ -28,9 +28,6 @@ import javax.validation.Validator; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Generates subclasses of {@link Validator} and {@link GwtSpecificValidator}. The generic * validator only handles the classes listed in the * {@link com.google.gwt.validation.client.GwtValidation} annotation. See
diff --git a/user/src/com/google/gwt/validation/super/com/google/gwt/validation/client/GwtMessageInterpolator.java b/user/src/com/google/gwt/validation/super/com/google/gwt/validation/client/GwtMessageInterpolator.java index e7a2c11..27f0c72 100644 --- a/user/src/com/google/gwt/validation/super/com/google/gwt/validation/client/GwtMessageInterpolator.java +++ b/user/src/com/google/gwt/validation/super/com/google/gwt/validation/client/GwtMessageInterpolator.java
@@ -21,9 +21,6 @@ import javax.validation.MessageInterpolator.Context; /** - * <strong>EXPERIMENTAL</strong> and subject to change. Do not use this in - * production code. - * <p> * Simple GWT {@link javax.validation.MessageInterpolator}. */ public final class GwtMessageInterpolator extends BaseMessageInterpolator {