Mercurial > hg > LGDataverses
view src/main/java/edu/harvard/iq/dataverse/ValidateEmail.java @ 14:be7787c36e58 default tip
new: nofity LGSercies for deleted files
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 02 Nov 2015 16:41:23 +0100 |
parents | a50cf11e5178 |
children |
line wrap: on
line source
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package edu.harvard.iq.dataverse; import static java.lang.annotation.ElementType.*; import static java.lang.annotation.RetentionPolicy.*; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * * @author skraffmi */ @Target({FIELD}) @Retention(RUNTIME) @Constraint(validatedBy = {EMailValidator.class}) @Documented public @interface ValidateEmail { String message() default "Failed Validation Email Address"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; }