Clover Coverage Report - itracker
Coverage timestamp: Tue May 1 2012 16:42:12 CEST
64   214   40   2.13
20   152   0.62   30
30     1.33  
1    
 
 
  SearchForm       Line # 32 64 40 0% 0.0
 
No Tests
 
1    /*
2    * This software was designed and created by Jason Carroll.
3    * Copyright (c) 2002, 2003, 2004 Jason Carroll.
4    * The author can be reached at jcarroll@cowsultants.com
5    * ITracker website: http://www.cowsultants.com
6    * ITracker forums: http://www.cowsultants.com/phpBB/index.php
7    *
8    * This program is free software; you can redistribute it and/or modify
9    * it only under the terms of the GNU General Public License as published by
10    * the Free Software Foundation; either version 2 of the License, or
11    * (at your option) any later version.
12    *
13    * This program is distributed in the hope that it will be useful,
14    * but WITHOUT ANY WARRANTY; without even the implied warranty of
15    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16    * GNU General Public License for more details.
17    */
18   
19    package org.itracker.web.forms;
20   
21    import javax.servlet.http.HttpServletRequest;
22   
23    import org.apache.struts.action.ActionErrors;
24    import org.apache.struts.action.ActionMapping;
25    import org.apache.struts.validator.ValidatorForm;
26   
27    /**
28    * This is the LoginForm Struts Form. It is used by Login form.
29    *
30    * @author ready
31    */
 
32    public class SearchForm extends ValidatorForm {
33    /**
34    *
35    */
36    private static final long serialVersionUID = 1L;
37    private String action;
38    private Integer[] components;
39    private Integer creator;
40    private String orderBy;
41    private Integer owner;
42    private Integer project;
43    private Integer[] projects;
44    private String resolution;
45    private Integer[] severities;
46    private Integer[] statuses;
47    private Integer targetVersion;
48    private String textphrase;
49    private Integer type;
50    private Integer[] versions;
51   
 
52  0 toggle public void reset(ActionMapping mapping, HttpServletRequest request) {
53  0 action = null;
54  0 components = null;
55  0 creator = null;
56  0 orderBy = null;
57  0 owner = null;
58  0 project = null;
59  0 projects = null;
60  0 resolution = null;
61  0 severities = null;
62  0 statuses = null;
63  0 targetVersion = null;
64  0 textphrase = null;
65  0 type = null;
66  0 versions = null;
67   
68    }
69   
 
70  0 toggle public ActionErrors validate(ActionMapping mapping,
71    HttpServletRequest request) {
72  0 ActionErrors errors = super.validate(mapping, request);
73   
74  0 return errors;
75    }
76   
 
77  0 toggle public String getAction() {
78  0 return action;
79    }
80   
 
81  0 toggle public void setAction(String action) {
82  0 this.action = action;
83    }
84   
 
85  0 toggle public Integer[] getComponents() {
86  0 if (null == components)
87  0 return null;
88  0 return components.clone();
89    }
90   
 
91  0 toggle public void setComponents(Integer[] components) {
92  0 if (null == components)
93  0 this.components = null;
94    else
95  0 this.components = components.clone();
96    }
97   
 
98  0 toggle public Integer getCreator() {
99  0 return creator;
100    }
101   
 
102  0 toggle public void setCreator(Integer creator) {
103  0 this.creator = creator;
104    }
105   
 
106  0 toggle public String getOrderBy() {
107  0 return orderBy;
108    }
109   
 
110  0 toggle public void setOrderBy(String orderBy) {
111  0 this.orderBy = orderBy;
112    }
113   
 
114  0 toggle public Integer getOwner() {
115  0 return owner;
116    }
117   
 
118  0 toggle public void setOwner(Integer owner) {
119  0 this.owner = owner;
120    }
121   
 
122  0 toggle public Integer getProject() {
123  0 return project;
124    }
125   
 
126  0 toggle public void setProject(Integer project) {
127  0 this.project = project;
128    }
129   
 
130  0 toggle public Integer[] getProjects() {
131  0 if (null == projects)
132  0 return null;
133  0 return projects.clone();
134    }
135   
 
136  0 toggle public void setProjects(Integer[] projects) {
137  0 if (null == projects)
138  0 this.projects = null;
139    else
140  0 this.projects = projects.clone();
141    }
142   
 
143  0 toggle public String getResolution() {
144  0 return resolution;
145    }
146   
 
147  0 toggle public void setResolution(String resolution) {
148  0 this.resolution = resolution;
149    }
150   
 
151  0 toggle public Integer[] getSeverities() {
152  0 if (null == severities)
153  0 return null;
154  0 return severities.clone();
155    }
156   
 
157  0 toggle public void setSeverities(Integer[] severities) {
158  0 if (null == severities)
159  0 this.severities = null;
160    else
161  0 this.severities = severities.clone();
162    }
163   
 
164  0 toggle public Integer[] getStatuses() {
165  0 if (null == statuses)
166  0 return null;
167  0 return statuses.clone();
168    }
169   
 
170  0 toggle public void setStatuses(Integer[] statuses) {
171  0 if (null == statuses)
172  0 this.statuses = null;
173    else
174  0 this.statuses = statuses.clone();
175    }
176   
 
177  0 toggle public Integer getTargetVersion() {
178  0 return targetVersion;
179    }
180   
 
181  0 toggle public void setTargetVersion(Integer targetVersion) {
182  0 this.targetVersion = targetVersion;
183    }
184   
 
185  0 toggle public String getTextphrase() {
186  0 return textphrase;
187    }
188   
 
189  0 toggle public void setTextphrase(String textphrase) {
190  0 this.textphrase = textphrase;
191    }
192   
 
193  0 toggle public Integer getType() {
194  0 return type;
195    }
196   
 
197  0 toggle public void setType(Integer type) {
198  0 this.type = type;
199    }
200   
 
201  0 toggle public Integer[] getVersions() {
202  0 if (null == this.versions)
203  0 return null;
204  0 return versions.clone();
205    }
206   
 
207  0 toggle public void setVersions(Integer[] versions) {
208  0 if (null == versions)
209  0 this.versions = null;
210    else
211  0 this.versions = versions.clone();
212    }
213   
214    }