Clover Coverage Report - itracker
Coverage timestamp: Tue May 1 2012 16:42:12 CEST
16   116   15   1.07
0   64   0.94   15
15     1  
1    
 
 
  LanguageForm       Line # 36 16 15 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 java.util.HashMap;
22    import java.util.Map;
23   
24    import javax.servlet.http.HttpServletRequest;
25   
26    import org.apache.struts.action.ActionErrors;
27    import org.apache.struts.action.ActionMapping;
28    import org.apache.struts.validator.ValidatorForm;
29   
30    /**
31    * This is the LoginForm Struts Form. It is used by Login form.
32    *
33    * @author ready
34    *
35    */
 
36    public class LanguageForm extends ValidatorForm {
37    /**
38    *
39    */
40    private static final long serialVersionUID = 1L;
41    private String action = null;
42    private String parentLocale = null;
43    private String key = null;
44    private String locale = null;
45    private String localeTitle = null;
46    private Map<String, String> items = new HashMap<String, String>();
47    private String localeBaseTitle;
48   
49    /*
50    * public void reset(ActionMapping mapping, HttpServletRequest request) {
51    * action = null; parentLocale = null; key= null; locale= null; HashMap<String,String>
52    * items = new HashMap<String,String>(); }
53    */
 
54  0 toggle public ActionErrors validate(ActionMapping mapping,
55    HttpServletRequest request) {
56  0 ActionErrors errors = super.validate(mapping, request);
57  0 return errors;
58    }
59   
 
60  0 toggle public String getAction() {
61  0 return action;
62    }
63   
 
64  0 toggle public void setAction(String action) {
65  0 this.action = action;
66    }
67   
 
68  0 toggle public Map<String, String> getItems() {
69  0 return items;
70    }
71   
 
72  0 toggle public void setItems(Map<String, String> items) {
73  0 this.items = items;
74    }
75   
 
76  0 toggle public String getKey() {
77  0 return key;
78    }
79   
 
80  0 toggle public void setKey(String key) {
81  0 this.key = key;
82    }
83   
 
84  0 toggle public String getLocale() {
85  0 return locale;
86    }
87   
 
88  0 toggle public void setLocale(String locale) {
89  0 this.locale = locale;
90    }
91   
 
92  0 toggle public String getParentLocale() {
93  0 return parentLocale;
94    }
95   
 
96  0 toggle public void setParentLocale(String parentLocale) {
97  0 this.parentLocale = parentLocale;
98    }
99   
 
100  0 toggle public String getLocaleTitle() {
101  0 return localeTitle;
102    }
103   
 
104  0 toggle public void setLocaleTitle(String localeTitle) {
105  0 this.localeTitle = localeTitle;
106    }
107   
 
108  0 toggle public void setLocaleBaseTitle(String resourceValue) {
109  0 this.localeBaseTitle = resourceValue;
110   
111    }
 
112  0 toggle public String getLocaleBaseTitle() {
113  0 return localeBaseTitle;
114    }
115   
116    }