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="productGroupForm"
14 */
15 public class ProductGroupForm extends ValidatorForm {
16 private Long id;
17 private String no;
18 private String nameF;
19 private String nameD;
20 private Long productClassId;
21
22 /***
23 * @return Returns the productClassId.
24 */
25 public Long getProductClassId() {
26 return productClassId;
27 }
28 /***
29 * @param productClassId The productClassId to set.
30 */
31 public void setProductClassId(Long productClassId) {
32 this.productClassId = productClassId;
33 }
34 /***
35 * @return Returns the id.
36 */
37 public Long getId() {
38 return id;
39 }
40 /***
41 * @param id The id to set.
42 */
43 public void setId(Long id) {
44 this.id = id;
45 }
46 /***
47 * @return Returns the nameD.
48 */
49 public String getNameD() {
50 return nameD;
51 }
52 /***
53 * @struts.validator type="required" msgkey="errors.productGroup.nameD.required"
54 * @param nameD The nameD to set.
55 */
56 public void setNameD(String nameD) {
57 this.nameD = nameD;
58 }
59 /***
60 * @return Returns the nameF.
61 */
62 public String getNameF() {
63 return nameF;
64 }
65 /***
66 * @struts.validator type="required" msgkey="errors.productGroup.nameF.required"
67 * @param nameF The nameF to set.
68 */
69 public void setNameF(String nameF) {
70 this.nameF = nameF;
71 }
72 /***
73 * @return Returns the no.
74 */
75 public String getNo() {
76 return no;
77 }
78 /***
79 * @struts.validator type="required" msgkey="errors.productGroup.no.required"
80 * @param no The no to set.
81 */
82 public void setNo(String no) {
83 this.no = no;
84 }
85
86 public void reset () {
87 id = null;
88 no = null;
89 nameF = null;
90 nameD = null;
91 productClassId = null;
92 }
93 }