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


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

Asserts the maximum value of the field or method when validated

Author:
chris

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

message

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

Returns:
Default:
"{constraint.max}"

groups

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

Returns:
Default:
{}

maximum

public abstract int maximum
Maximum value of the field or method

Returns:
Default:
2147483647