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


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

Asserts that the field or method is a string representing an email when validated.

Taken from : http://www.regular-expressions.info/email.html

Author:
chris

Optional Element Summary
 java.lang.String[] groups
          Groups that the constraint belongs to
 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.email}"

groups

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

Returns:
Default:
{}