1
2
3
4
5
6
7 package ch.ledcom.hephaistos;
8
9 import org.apache.struts.validator.ValidatorForm;
10
11 /***
12 * @author gehel
13 * @struts.form name="productClassForm"
14 */
15 public class ProductClassForm extends ValidatorForm {
16 private Long id;
17 private String no;
18 private String nameF;
19 private String nameD;
20
21 /***
22 * @return Returns the id.
23 */
24 public Long getId() {
25 return id;
26 }
27 /***
28 * @param id The id to set.
29 */
30 public void setId(Long id) {
31 this.id = id;
32 }
33 /***
34 * @return Returns the nameD.
35 */
36 public String getNameD() {
37 return nameD;
38 }
39 /***
40 * @struts.validator type="required" msgkey="errors.productClass.nameD.required"
41 * @param nameD The nameD to set.
42 */
43 public void setNameD(String nameD) {
44 this.nameD = nameD;
45 }
46 /***
47 * @return Returns the nameF.
48 */
49 public String getNameF() {
50 return nameF;
51 }
52 /***
53 * @struts.validator type="required" msgkey="errors.productClass.nameF.required"
54 * @param nameF The nameF to set.
55 */
56 public void setNameF(String nameF) {
57 this.nameF = nameF;
58 }
59 /***
60 * @return Returns the no.
61 */
62 public String getNo() {
63 return no;
64 }
65 /***
66 * @struts.validator type="required" msgkey="errors.productClass.no.required"
67 * @param no The no to set.
68 */
69 public void setNo(String no) {
70 this.no = no;
71 }
72 public void reset () {
73 id = null;
74 no = null;
75 nameF = null;
76 nameD = null;
77 }
78 }