diff options
author | Artur Signell <artur@vaadin.com> | 2016-08-18 09:31:40 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-08-18 09:31:40 +0300 |
commit | eeffa805a212ebb25c4af18db1e927b23a3ad66a (patch) | |
tree | 3bfdb4ef4b8e9b6e9e45c77c90b4f31eba1af94e /server/src/main/java/com/vaadin/data/validator | |
parent | 6d54d78944f6c3278eed3bb5e7ee19687ee5714e (diff) | |
download | vaadin-framework-eeffa805a212ebb25c4af18db1e927b23a3ad66a.tar.gz vaadin-framework-eeffa805a212ebb25c4af18db1e927b23a3ad66a.zip |
Remove trailing whitespace from code and javadoc
Change-Id: I4c852b7f9928e190572876690d5bef1234494a5d
Diffstat (limited to 'server/src/main/java/com/vaadin/data/validator')
17 files changed, 128 insertions, 128 deletions
diff --git a/server/src/main/java/com/vaadin/data/validator/AbstractValidator.java b/server/src/main/java/com/vaadin/data/validator/AbstractValidator.java index 276a991b62..9efae2ebf9 100644 --- a/server/src/main/java/com/vaadin/data/validator/AbstractValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/AbstractValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -23,7 +23,7 @@ import com.vaadin.data.Validator; /** * An abstract base class for typed validators. - * + * * @param <T> * The value type * @author Vaadin Ltd. @@ -36,7 +36,7 @@ public abstract class AbstractValidator<T> implements Validator<T> { /** * Constructs a validator with the given error message. The substring "{0}" * is replaced by the value that failed validation. - * + * * @param errorMessage * the message to be included in a failed result, not null */ @@ -48,7 +48,7 @@ public abstract class AbstractValidator<T> implements Validator<T> { /** * Returns the error message for the given value. - * + * * @param value * an invalid value * @return the formatted error message @@ -65,14 +65,14 @@ public abstract class AbstractValidator<T> implements Validator<T> { * <p> * For instance, the following {@code apply} method only accepts even * numbers: - * + * * <pre> * @Override * public Result<T> apply(Integer value) { * return toResult(value, value % 2 == 0); * } * </pre> - * + * * @param value * the validated value * @param isValid diff --git a/server/src/main/java/com/vaadin/data/validator/BeanValidator.java b/server/src/main/java/com/vaadin/data/validator/BeanValidator.java index 0c09c89371..362ea05944 100644 --- a/server/src/main/java/com/vaadin/data/validator/BeanValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/BeanValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -39,10 +39,10 @@ import com.vaadin.data.Validator; * Note that a JSR-303 implementation (e.g. Hibernate Validator or Apache Bean * Validation - formerly agimatec validation) must be present on the project * classpath when using bean validation. - * + * * @author Petri Hakala * @author Vaadin Ltd. - * + * * @since 8.0 */ public class BeanValidator implements Validator<Object> { @@ -58,7 +58,7 @@ public class BeanValidator implements Validator<Object> { * Creates a new JSR-303 {@code BeanValidator} that validates values of the * specified property. Localizes validation messages using the * {@linkplain Locale#getDefault() default locale}. - * + * * @param beanType * the bean type declaring the property, not null * @param propertyName @@ -71,7 +71,7 @@ public class BeanValidator implements Validator<Object> { /** * Creates a new JSR-303 {@code BeanValidator} that validates values of the * specified property. Localizes validation messages using the given locale. - * + * * @param beanType * the bean class declaring the property, not null * @param propertyName @@ -111,7 +111,7 @@ public class BeanValidator implements Validator<Object> { /** * Returns the locale used for validation error messages. - * + * * @return the locale used for error messages */ public Locale getLocale() { @@ -127,7 +127,7 @@ public class BeanValidator implements Validator<Object> { /** * Returns the underlying JSR-303 bean validator factory used. A factory is * created using {@link Validation} if necessary. - * + * * @return the validator factory to use */ protected static ValidatorFactory getJavaxBeanValidatorFactory() { @@ -139,7 +139,7 @@ public class BeanValidator implements Validator<Object> { /** * Returns a shared JSR-303 validator instance to use. - * + * * @return the validator to use */ protected javax.validation.Validator getJavaxBeanValidator() { @@ -149,7 +149,7 @@ public class BeanValidator implements Validator<Object> { /** * Returns the interpolated error message for the given constraint violation * using the locale specified for this validator. - * + * * @param v * the constraint violation * @return the localized error message @@ -162,7 +162,7 @@ public class BeanValidator implements Validator<Object> { /** * Creates a simple message interpolation context based on the given * constraint violation. - * + * * @param v * the constraint violation * @return the message interpolation context @@ -184,7 +184,7 @@ public class BeanValidator implements Validator<Object> { /** * Sets the locale used for validation error messages. Revalidation is not * automatically triggered by setting the locale. - * + * * @param locale * the locale to use for error messages, not null */ diff --git a/server/src/main/java/com/vaadin/data/validator/BigDecimalRangeValidator.java b/server/src/main/java/com/vaadin/data/validator/BigDecimalRangeValidator.java index 0bdbd70356..1dd0a4693a 100644 --- a/server/src/main/java/com/vaadin/data/validator/BigDecimalRangeValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/BigDecimalRangeValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -20,7 +20,7 @@ import java.util.Comparator; /** * Validator for validating that an {@link BigDecimal} is inside a given range. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -30,12 +30,12 @@ public class BigDecimalRangeValidator extends RangeValidator<BigDecimal> { /** * Creates a validator for checking that an BigDecimal is within a given * range. - * + * * By default the range is inclusive i.e. both minValue and maxValue are * valid values. Use {@link #setMinValueIncluded(boolean)} or * {@link #setMaxValueIncluded(boolean)} to change it. - * - * + * + * * @param errorMessage * the message to display in case the value does not validate. * @param minValue diff --git a/server/src/main/java/com/vaadin/data/validator/BigIntegerRangeValidator.java b/server/src/main/java/com/vaadin/data/validator/BigIntegerRangeValidator.java index 87ab5605a7..3c1b9a4a10 100644 --- a/server/src/main/java/com/vaadin/data/validator/BigIntegerRangeValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/BigIntegerRangeValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -20,7 +20,7 @@ import java.util.Comparator; /** * Validator for validating that an {@link BigInteger} is inside a given range. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -30,12 +30,12 @@ public class BigIntegerRangeValidator extends RangeValidator<BigInteger> { /** * Creates a validator for checking that an BigInteger is within a given * range. - * + * * By default the range is inclusive i.e. both minValue and maxValue are * valid values. Use {@link #setMinValueIncluded(boolean)} or * {@link #setMaxValueIncluded(boolean)} to change it. - * - * + * + * * @param errorMessage * the message to display in case the value does not validate. * @param minValue diff --git a/server/src/main/java/com/vaadin/data/validator/ByteRangeValidator.java b/server/src/main/java/com/vaadin/data/validator/ByteRangeValidator.java index fd11fc6aa4..33babe90a3 100644 --- a/server/src/main/java/com/vaadin/data/validator/ByteRangeValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/ByteRangeValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -19,7 +19,7 @@ import java.util.Comparator; /** * Validator for validating that an {@link Byte} is inside a given range. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -28,12 +28,12 @@ public class ByteRangeValidator extends RangeValidator<Byte> { /** * Creates a validator for checking that an Byte is within a given range. - * + * * By default the range is inclusive i.e. both minValue and maxValue are * valid values. Use {@link #setMinValueIncluded(boolean)} or * {@link #setMaxValueIncluded(boolean)} to change it. - * - * + * + * * @param errorMessage * the message to display in case the value does not validate. * @param minValue diff --git a/server/src/main/java/com/vaadin/data/validator/DateRangeValidator.java b/server/src/main/java/com/vaadin/data/validator/DateRangeValidator.java index 43164d0fe2..8fe0107d7f 100644 --- a/server/src/main/java/com/vaadin/data/validator/DateRangeValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/DateRangeValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -22,13 +22,13 @@ import com.vaadin.shared.ui.datefield.Resolution; /** * Validator for validating that a Date is inside a given range. - * + * * <p> * Note that the comparison is done directly on the Date object so take care * that the hours/minutes/seconds/milliseconds of the min/max values are * properly set. * </p> - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -46,7 +46,7 @@ public class DateRangeValidator extends RangeValidator<Date> { * that the hours/minutes/seconds/milliseconds of the min/max values are * properly set. * </p> - * + * * @param errorMessage * the message to display in case the value does not validate. * @param minValue diff --git a/server/src/main/java/com/vaadin/data/validator/DoubleRangeValidator.java b/server/src/main/java/com/vaadin/data/validator/DoubleRangeValidator.java index aa02ba9fe4..bdb5736406 100644 --- a/server/src/main/java/com/vaadin/data/validator/DoubleRangeValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/DoubleRangeValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -19,7 +19,7 @@ import java.util.Comparator; /** * Validator for validating that a {@link Double} is inside a given range. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -28,12 +28,12 @@ public class DoubleRangeValidator extends RangeValidator<Double> { /** * Creates a validator for checking that an Double is within a given range. - * + * * By default the range is inclusive i.e. both minValue and maxValue are * valid values. Use {@link #setMinValueIncluded(boolean)} or * {@link #setMaxValueIncluded(boolean)} to change it. - * - * + * + * * @param errorMessage * the message to display in case the value does not validate. * @param minValue diff --git a/server/src/main/java/com/vaadin/data/validator/EmailValidator.java b/server/src/main/java/com/vaadin/data/validator/EmailValidator.java index 44243b0712..09cbc31fb7 100644 --- a/server/src/main/java/com/vaadin/data/validator/EmailValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/EmailValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -19,7 +19,7 @@ package com.vaadin.data.validator; * A string validator for e-mail addresses. The e-mail address syntax is not * complete according to RFC 822 but handles the vast majority of valid e-mail * addresses correctly. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -34,7 +34,7 @@ public class EmailValidator extends RegexpValidator { /** * Creates a validator for checking that a string is a syntactically valid * e-mail address. - * + * * @param errorMessage * the message to display in case the value does not validate. */ diff --git a/server/src/main/java/com/vaadin/data/validator/FloatRangeValidator.java b/server/src/main/java/com/vaadin/data/validator/FloatRangeValidator.java index ef57900f2f..e348c90b34 100644 --- a/server/src/main/java/com/vaadin/data/validator/FloatRangeValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/FloatRangeValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -19,7 +19,7 @@ import java.util.Comparator; /** * Validator for validating that a {@link Float} is inside a given range. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -28,12 +28,12 @@ public class FloatRangeValidator extends RangeValidator<Float> { /** * Creates a validator for checking that an Float is within a given range. - * + * * By default the range is inclusive i.e. both minValue and maxValue are * valid values. Use {@link #setMinValueIncluded(boolean)} or * {@link #setMaxValueIncluded(boolean)} to change it. - * - * + * + * * @param errorMessage * the message to display in case the value does not validate. * @param minValue diff --git a/server/src/main/java/com/vaadin/data/validator/IntegerRangeValidator.java b/server/src/main/java/com/vaadin/data/validator/IntegerRangeValidator.java index c7dc7cbee9..268551855c 100644 --- a/server/src/main/java/com/vaadin/data/validator/IntegerRangeValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/IntegerRangeValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -19,7 +19,7 @@ import java.util.Comparator; /** * Validator for validating that an {@link Integer} is inside a given range. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -28,12 +28,12 @@ public class IntegerRangeValidator extends RangeValidator<Integer> { /** * Creates a validator for checking that an Integer is within a given range. - * + * * By default the range is inclusive i.e. both minValue and maxValue are * valid values. Use {@link #setMinValueIncluded(boolean)} or * {@link #setMaxValueIncluded(boolean)} to change it. - * - * + * + * * @param errorMessage * the message to display in case the value does not validate. * @param minValue diff --git a/server/src/main/java/com/vaadin/data/validator/LongRangeValidator.java b/server/src/main/java/com/vaadin/data/validator/LongRangeValidator.java index 85cdb907ac..5f2f5ca06c 100644 --- a/server/src/main/java/com/vaadin/data/validator/LongRangeValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/LongRangeValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -19,7 +19,7 @@ import java.util.Comparator; /** * Validator for validating that an {@link Long} is inside a given range. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -28,12 +28,12 @@ public class LongRangeValidator extends RangeValidator<Long> { /** * Creates a validator for checking that an Long is within a given range. - * + * * By default the range is inclusive i.e. both minValue and maxValue are * valid values. Use {@link #setMinValueIncluded(boolean)} or * {@link #setMaxValueIncluded(boolean)} to change it. - * - * + * + * * @param errorMessage * the message to display in case the value does not validate. * @param minValue diff --git a/server/src/main/java/com/vaadin/data/validator/NotEmptyValidator.java b/server/src/main/java/com/vaadin/data/validator/NotEmptyValidator.java index ac827c45b6..2a11caf773 100644 --- a/server/src/main/java/com/vaadin/data/validator/NotEmptyValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/NotEmptyValidator.java @@ -35,7 +35,7 @@ import com.vaadin.data.Validator; * Furthermore, required fields requires "non-empty" validator. So in addition * to call {@link HasRequired#setRequired(boolean)} method one should add an * instance of this validator explicitly so the code looks like this: - * + * * <pre> * <code> * Binder<Bean,String, String> binder = new Binder<>(); @@ -46,7 +46,7 @@ import com.vaadin.data.Validator; * .bind(Bean::getName, Bean::setName); * </code> * </pre> - * + * * @see HasRequired * @author Vaadin Ltd * @since 8.0 diff --git a/server/src/main/java/com/vaadin/data/validator/NotNullValidator.java b/server/src/main/java/com/vaadin/data/validator/NotNullValidator.java index e44e086c0f..5590708918 100644 --- a/server/src/main/java/com/vaadin/data/validator/NotNullValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/NotNullValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -23,7 +23,7 @@ import com.vaadin.data.Result; /** * This validator is used for validating properties that do not allow null * values. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -32,7 +32,7 @@ public class NotNullValidator extends AbstractValidator<String> { /** * Creates a new NullValidator. - * + * * @param errorMessage * the error message to display on invalidation. */ diff --git a/server/src/main/java/com/vaadin/data/validator/RangeValidator.java b/server/src/main/java/com/vaadin/data/validator/RangeValidator.java index eed79d0b8b..f5bdf48bcc 100644 --- a/server/src/main/java/com/vaadin/data/validator/RangeValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/RangeValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -22,7 +22,7 @@ import com.vaadin.data.Result; /** * Verifies that a value is within the given range. - * + * * @param <T> * the type to validate * @author Vaadin Ltd. @@ -42,7 +42,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { * direction. Both limits may be null; this can be useful if the limits are * resolved programmatically. The result of passing null to {@code apply} * depends on the given comparator. - * + * * @param errorMessage * the error message to return if validation fails, not null * @param comparator @@ -73,7 +73,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { * <p> * Null is considered to be less than any non-null value. This means null * never passes validation if a minimum value is specified. - * + * * @param <C> * the {@code Comparable} value type * @param errorMessage @@ -103,7 +103,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { /** * Returns whether the minimum value is part of the accepted range. - * + * * @return true if the minimum value is part of the range, false otherwise */ public boolean isMinValueIncluded() { @@ -112,7 +112,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { /** * Sets whether the minimum value is part of the accepted range. - * + * * @param minValueIncluded * true if the minimum value should be part of the range, false * otherwise @@ -123,7 +123,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { /** * Returns whether the maximum value is part of the accepted range. - * + * * @return true if the maximum value is part of the range, false otherwise */ public boolean isMaxValueIncluded() { @@ -132,7 +132,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { /** * Sets whether the maximum value is part of the accepted range. - * + * * @param maxValueIncluded * true if the maximum value should be part of the range, false * otherwise @@ -143,7 +143,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { /** * Returns the minimum value of the range. - * + * * @return the minimum value */ public T getMinValue() { @@ -154,7 +154,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { * Sets the minimum value of the range. Use * {@link #setMinValueIncluded(boolean)} to control whether this value is * part of the range or not. - * + * * @param minValue * the minimum value */ @@ -164,7 +164,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { /** * Gets the maximum value of the range. - * + * * @return the maximum value */ public T getMaxValue() { @@ -175,7 +175,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { * Sets the maximum value of the range. Use * {@link #setMaxValueIncluded(boolean)} to control whether this value is * part of the range or not. - * + * * @param maxValue * the maximum value */ @@ -194,7 +194,7 @@ public class RangeValidator<T> extends AbstractValidator<T> { /** * Returns whether the given value lies in the valid range. - * + * * @param value * the value to validate * @return true if the value is valid, false otherwise diff --git a/server/src/main/java/com/vaadin/data/validator/RegexpValidator.java b/server/src/main/java/com/vaadin/data/validator/RegexpValidator.java index ce72d79e74..d798b3748e 100644 --- a/server/src/main/java/com/vaadin/data/validator/RegexpValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/RegexpValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -25,7 +25,7 @@ import com.vaadin.data.Result; * Both complete matches and substring matches are supported. * <p> * For the Java regular expression syntax, see {@link java.util.regex.Pattern}. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -39,7 +39,7 @@ public class RegexpValidator extends AbstractValidator<String> { /** * Creates a validator for checking that the regular expression matches the * complete string to validate. - * + * * @param errorMessage * the message to display in case the value does not validate. * @param regexp @@ -52,7 +52,7 @@ public class RegexpValidator extends AbstractValidator<String> { /** * Creates a validator for checking that the regular expression matches the * string to validate. - * + * * @param errorMessage * the message to display in case the value does not validate. * @param regexp @@ -60,7 +60,7 @@ public class RegexpValidator extends AbstractValidator<String> { * @param complete * true to use check for a complete match, false to look for a * matching substring - * + * */ public RegexpValidator(String errorMessage, String regexp, boolean complete) { @@ -81,7 +81,7 @@ public class RegexpValidator extends AbstractValidator<String> { /** * Returns whether the given string matches the regular expression. - * + * * @param value * the string to match * @return true if the string matched, false otherwise @@ -99,7 +99,7 @@ public class RegexpValidator extends AbstractValidator<String> { /** * Returns a new or reused matcher for the pattern. - * + * * @param value * the string to find matches in * @return a matcher for the string diff --git a/server/src/main/java/com/vaadin/data/validator/ShortRangeValidator.java b/server/src/main/java/com/vaadin/data/validator/ShortRangeValidator.java index 4fee15bca0..d96142d5d7 100644 --- a/server/src/main/java/com/vaadin/data/validator/ShortRangeValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/ShortRangeValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -19,7 +19,7 @@ import java.util.Comparator; /** * Validator for validating that an {@link Short} is inside a given range. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -28,12 +28,12 @@ public class ShortRangeValidator extends RangeValidator<Short> { /** * Creates a validator for checking that an Short is within a given range. - * + * * By default the range is inclusive i.e. both minValue and maxValue are * valid values. Use {@link #setMinValueIncluded(boolean)} or * {@link #setMaxValueIncluded(boolean)} to change it. - * - * + * + * * @param errorMessage * the message to display in case the value does not validate. * @param minValue diff --git a/server/src/main/java/com/vaadin/data/validator/StringLengthValidator.java b/server/src/main/java/com/vaadin/data/validator/StringLengthValidator.java index 2e796cfdb2..b0836585e4 100644 --- a/server/src/main/java/com/vaadin/data/validator/StringLengthValidator.java +++ b/server/src/main/java/com/vaadin/data/validator/StringLengthValidator.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -20,7 +20,7 @@ import com.vaadin.data.Result; /** * Verifies that the length of a string is within the given range. - * + * * @author Vaadin Ltd. * @since 8.0 */ @@ -32,7 +32,7 @@ public class StringLengthValidator extends AbstractValidator<String> { /** * Creates a new StringLengthValidator with a given error message and * minimum and maximum length limits. - * + * * @param errorMessage * the error message to return if validation fails * @param minLength @@ -59,7 +59,7 @@ public class StringLengthValidator extends AbstractValidator<String> { /** * Gets the maximum permissible length of the string. - * + * * @return the maximum length of the string or null if there is no limit */ public Integer getMaxLength() { @@ -68,7 +68,7 @@ public class StringLengthValidator extends AbstractValidator<String> { /** * Gets the minimum permissible length of the string. - * + * * @return the minimum length of the string or null if there is no limit */ public Integer getMinLength() { @@ -77,7 +77,7 @@ public class StringLengthValidator extends AbstractValidator<String> { /** * Sets the maximum permissible length of the string. - * + * * @param maxLength * the maximum length to accept or null for no limit */ @@ -87,7 +87,7 @@ public class StringLengthValidator extends AbstractValidator<String> { /** * Sets the minimum permissible length. - * + * * @param minLength * the minimum length to accept or null for no limit */ |