1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.itracker.web.forms;
20
21 import org.apache.struts.action.ActionErrors;
22 import org.apache.struts.action.ActionMapping;
23 import org.apache.struts.validator.ValidatorForm;
24
25 import javax.servlet.http.HttpServletRequest;
26
27
28
29
30
31
32 public class ReportForm extends ValidatorForm {
33
34
35
36 private static final long serialVersionUID = 1L;
37 private String action;
38
39 private Integer id;
40 private String name;
41 private String nameKey;
42 private String description;
43 private Integer dataType;
44 private Integer reportType;
45 private transient org.apache.struts.upload.FormFile fileDataFile;
46 private String fileData;
47 private String className;
48
49 public void reset(ActionMapping mapping, HttpServletRequest request) {
50 action = null;
51 id = null;
52 name = null;
53 nameKey = null;
54 description = null;
55 dataType = null;
56 reportType = null;
57 fileDataFile = null;
58 fileData = null;
59 className = null;
60 }
61
62 public ActionErrors validate(ActionMapping mapping,
63 HttpServletRequest request) {
64 ActionErrors errors = super.validate(mapping, request);
65
66 return errors;
67 }
68
69 public String getAction() {
70 return action;
71 }
72
73 public void setAction(String action) {
74 this.action = action;
75 }
76
77 public String getClassName() {
78 return className;
79 }
80
81 public void setClassName(String className) {
82 this.className = className;
83 }
84
85 public Integer getDataType() {
86 return dataType;
87 }
88
89 public void setDataType(Integer dataType) {
90 this.dataType = dataType;
91 }
92
93 public String getDescription() {
94 return description;
95 }
96
97 public void setDescription(String description) {
98 this.description = description;
99 }
100
101 public org.apache.struts.upload.FormFile getFileDataFile() {
102 return fileDataFile;
103 }
104
105 public void setFileDataFile(org.apache.struts.upload.FormFile fileDataFile) {
106 this.fileDataFile = fileDataFile;
107 }
108
109 public String getFileData() {
110 return fileData;
111 }
112
113 public void setFileData(String fileData) {
114 this.fileData = fileData;
115 }
116
117 public String getName() {
118 return name;
119 }
120
121 public void setName(String name) {
122 this.name = name;
123 }
124
125 public String getNameKey() {
126 return nameKey;
127 }
128
129 public void setNameKey(String nameKey) {
130 this.nameKey = nameKey;
131 }
132
133
134 public Integer getId() {
135 return id;
136 }
137
138 public void setId(Integer id) {
139 this.id = id;
140 }
141
142 }