KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > contineo > forms > SearchForm


1 /*
2  * SearchForm.java
3  *
4  * Created on 7. November 2003, 17:40
5  */

6
7 package org.contineo.forms;
8
9 import javax.servlet.http.HttpServletRequest JavaDoc;
10 import org.apache.struts.action.ActionForm;
11 import org.apache.struts.action.ActionMapping;
12
13 /**
14  * Represents the search form.
15  * @author Michael Scholz
16  */

17 public class SearchForm extends ActionForm {
18     
19     private static final long serialVersionUID = 1L;
20     
21     /**
22      * @uml.property name="query"
23      */

24     private String JavaDoc query = "";
25     /**
26      * @uml.property name="phrase"
27      */

28     private String JavaDoc phrase = "";
29     /**
30      * @uml.property name="any"
31      */

32     private String JavaDoc any = "";
33     /**
34      * @uml.property name="not"
35      */

36     private String JavaDoc not = "";
37     /**
38      * @uml.property name="format"
39      */

40     private String JavaDoc format = "all";
41     /**
42      * @uml.property name="size"
43      */

44     private String JavaDoc size = "";
45     /**
46      * @uml.property name="relation"
47      */

48     private String JavaDoc relation = "";
49     /**
50      * @uml.property name="date"
51      */

52     private String JavaDoc date = "";
53     /**
54      * @uml.property name="dateRelation"
55      */

56     private String JavaDoc dateRelation = "";
57     /**
58      * @uml.property name="fuzzy"
59      */

60     private boolean fuzzy = false;
61     /**
62      * @uml.property name="content"
63      */

64     private boolean content = false;
65     /**
66      * @uml.property name="keywords"
67      */

68     private boolean keywords = false;
69     /**
70      * @uml.property name="source"
71      */

72     private boolean source = false;
73     /**
74      * @uml.property name="sourceAuthor"
75      */

76     private boolean sourceAuthor = false;
77     /**
78      * @uml.property name="sourceType"
79      */

80     private boolean sourceType = false;
81     /**
82      * @uml.property name="coverage"
83      */

84     private boolean coverage = false;
85     private boolean english = false;
86     private boolean french = false;
87     private boolean german = false;
88     
89     /** Creates a new instance of SearchForm */
90     public SearchForm() {
91     }
92
93     /**
94      *
95      * @uml.property name="query"
96      */

97     public String JavaDoc getQuery() {
98         return query;
99     }
100
101     /**
102      *
103      * @uml.property name="phrase"
104      */

105     public String JavaDoc getPhrase() {
106         return phrase;
107     }
108
109     /**
110      *
111      * @uml.property name="any"
112      */

113     public String JavaDoc getAny() {
114         return any;
115     }
116
117     /**
118      *
119      * @uml.property name="not"
120      */

121     public String JavaDoc getNot() {
122         return not;
123     }
124
125     /**
126      *
127      * @uml.property name="format"
128      */

129     public String JavaDoc getFormat() {
130         return format;
131     }
132
133     /**
134      *
135      * @uml.property name="size"
136      */

137     public String JavaDoc getSize() {
138         return size;
139     }
140
141     /**
142      *
143      * @uml.property name="relation"
144      */

145     public String JavaDoc getRelation() {
146         return relation;
147     }
148
149     /**
150      *
151      * @uml.property name="date"
152      */

153     public String JavaDoc getDate() {
154         return date;
155     }
156
157     /**
158      *
159      * @uml.property name="dateRelation"
160      */

161     public String JavaDoc getDateRelation() {
162         return dateRelation;
163     }
164
165     /**
166      *
167      * @uml.property name="fuzzy"
168      */

169     public boolean getFuzzy() {
170         return fuzzy;
171     }
172
173     /**
174      *
175      * @uml.property name="content"
176      */

177     public boolean getContent() {
178         return content;
179     }
180
181     /**
182      *
183      * @uml.property name="keywords"
184      */

185     public boolean getKeywords() {
186         return keywords;
187     }
188
189     /**
190      *
191      * @uml.property name="source"
192      */

193     public boolean getSource() {
194         return source;
195     }
196
197     /**
198      *
199      * @uml.property name="sourceAuthor"
200      */

201     public boolean getSourceAuthor() {
202         return sourceAuthor;
203     }
204
205     /**
206      *
207      * @uml.property name="sourceType"
208      */

209     public boolean getSourceType() {
210         return sourceType;
211     }
212
213     /**
214      *
215      * @uml.property name="coverage"
216      */

217     public boolean getCoverage() {
218         return coverage;
219     }
220
221     /**
222      *
223      * @uml.property name="query"
224      */

225     public void setQuery(String JavaDoc quer) {
226         query = quer;
227     }
228
229     /**
230      *
231      * @uml.property name="any"
232      */

233     public void setAny(String JavaDoc an) {
234         any = an;
235     }
236
237     /**
238      *
239      * @uml.property name="not"
240      */

241     public void setNot(String JavaDoc nt) {
242         not = nt;
243     }
244
245     /**
246      *
247      * @uml.property name="phrase"
248      */

249     public void setPhrase(String JavaDoc phras) {
250         phrase = phras;
251     }
252
253     /**
254      *
255      * @uml.property name="format"
256      */

257     public void setFormat(String JavaDoc form) {
258         format = form;
259     }
260
261     /**
262      *
263      * @uml.property name="size"
264      */

265     public void setSize(String JavaDoc sze) {
266         size = sze;
267     }
268
269     /**
270      *
271      * @uml.property name="relation"
272      */

273     public void setRelation(String JavaDoc rel) {
274         relation = rel;
275     }
276
277     /**
278      *
279      * @uml.property name="date"
280      */

281     public void setDate(String JavaDoc dat) {
282         date = dat;
283     }
284
285     /**
286      *
287      * @uml.property name="dateRelation"
288      */

289     public void setDateRelation(String JavaDoc daterel) {
290         dateRelation = daterel;
291     }
292
293     /**
294      *
295      * @uml.property name="fuzzy"
296      */

297     public void setFuzzy(boolean fzz) {
298         fuzzy = fzz;
299     }
300
301     /**
302      *
303      * @uml.property name="content"
304      */

305     public void setContent(boolean b) {
306         content = b;
307     }
308
309     /**
310      *
311      * @uml.property name="keywords"
312      */

313     public void setKeywords(boolean b) {
314         keywords = b;
315     }
316
317     /**
318      *
319      * @uml.property name="source"
320      */

321     public void setSource(boolean b) {
322         source = b;
323     }
324
325     /**
326      *
327      * @uml.property name="sourceAuthor"
328      */

329     public void setSourceAuthor(boolean b) {
330         sourceAuthor = b;
331     }
332
333     /**
334      *
335      * @uml.property name="sourceType"
336      */

337     public void setSourceType(boolean b) {
338         sourceType = b;
339     }
340
341     /**
342      *
343      * @uml.property name="coverage"
344      */

345     public void setCoverage(boolean b) {
346         coverage = b;
347     }
348     
349     /**
350      * @return Returns the english.
351      * @uml.property name="english"
352      */

353     public boolean getEnglish() {
354         return english;
355     }
356     
357     /**
358      * @param english The english to set.
359      * @uml.property name="english"
360      */

361     public void setEnglish(boolean english) {
362         this.english = english;
363     }
364     
365     /**
366      * @return Returns the french.
367      * @uml.property name="french"
368      */

369     public boolean getFrench() {
370         return french;
371     }
372     
373     /**
374      * @param french The french to set.
375      * @uml.property name="french"
376      */

377     public void setFrench(boolean french) {
378         this.french = french;
379     }
380     
381     /**
382      * @return Returns the german.
383      * @uml.property name="german"
384      */

385     public boolean getGerman() {
386         return german;
387     }
388     
389     /**
390      * @param german The german to set.
391      * @uml.property name="german"
392      */

393     public void setGerman(boolean german) {
394         this.german = german;
395     }
396     
397     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
398         query = "";
399         phrase = "";
400         any = "";
401         not = "";
402         format = "all";
403         size = "";
404         relation = "";
405         date = "";
406         dateRelation = "";
407         fuzzy = false;
408         content = false;
409         keywords = false;
410         source = false;
411         sourceAuthor = false;
412         sourceType = false;
413         coverage = false;
414         english = false;
415         french = false;
416         german = false;
417     }
418 }
419
Popular Tags