1 package uk.ac.ebi.intenz.webapp.dtos;
2
3 import org.apache.struts.action.ActionErrors;
4 import org.apache.struts.action.ActionMapping;
5 import org.apache.struts.validator.ValidatorForm;
6
7 import javax.servlet.http.HttpServletRequest;
8
9
10
11
12
13
14
15 public class GhostEntityDTO extends ValidatorForm {
16
17 String ec;
18 String name;
19
20 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
21 ActionErrors errors = super.validate(mapping, request);
22 if (errors == null) errors = new ActionErrors();
23 if (errors.isEmpty()) return null;
24 return errors;
25 }
26
27
28
29
30 public String getEc() {
31 return ec;
32 }
33
34 public void setEc(String ec) {
35 this.ec = ec;
36 }
37
38 public String getName() {
39 return name;
40 }
41
42 public void setName(String name) {
43 this.name = name;
44 }
45 }