com.google.gwt.validation.client
Annotation Type Range


@Documented
@Target(value={METHOD,FIELD})
@ConstraintValidator(value=RangeValidator.class)
@Retention(value=RUNTIME)
public @interface Range

Asserts that the value contained by the field or method is between minimum and maximum when validated.

Author:
chris

Optional Element Summary
 java.lang.String[] groups
          Groups that the constraint belongs to
 int maximum
          The maximum value of the field or method
 java.lang.String message
          Message that is returned on validation failure.
 int minimum
          The minimum value of the field or method
 

message

public abstract java.lang.String message
Message that is returned on validation failure.

Returns:
Default:
"{constraint.range}"

groups

public abstract java.lang.String[] groups
Groups that the constraint belongs to

Returns:
Default:
{}

minimum

public abstract int minimum
The minimum value of the field or method

Returns:
Default:
0

maximum

public abstract int maximum
The maximum value of the field or method

Returns:
Default:
2147483647