| 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 java.util.HashMap; |
| 22 |
|
|
| 23 |
|
import javax.servlet.http.HttpServletRequest; |
| 24 |
|
|
| 25 |
|
import org.apache.struts.action.ActionErrors; |
| 26 |
|
import org.apache.struts.action.ActionMapping; |
| 27 |
|
import org.apache.struts.validator.ValidatorForm; |
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
@author |
| 33 |
|
|
| 34 |
|
|
|
|
|
| 0% |
Uncovered Elements: 27 (27) |
Complexity: 13 |
Complexity Density: 0.93 |
|
| 35 |
|
public class ConfigurationForm extends ValidatorForm { |
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
private static final long serialVersionUID = 1L; |
| 40 |
|
String action; |
| 41 |
|
Integer id; |
| 42 |
|
String value; |
| 43 |
|
Integer order; |
| 44 |
|
String key; |
| 45 |
|
|
| 46 |
|
|
| 47 |
|
HashMap<String, String> translations = new HashMap<String, String>(); |
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 54 |
0
|
public ActionErrors validate(ActionMapping mapping,... |
| 55 |
|
HttpServletRequest request) { |
| 56 |
0
|
ActionErrors errors = super.validate(mapping, request); |
| 57 |
|
|
| 58 |
0
|
return errors; |
| 59 |
|
} |
| 60 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 61 |
0
|
public String getAction() {... |
| 62 |
0
|
return action; |
| 63 |
|
} |
| 64 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 65 |
0
|
public void setAction(String action) {... |
| 66 |
0
|
this.action = action; |
| 67 |
|
} |
| 68 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 69 |
0
|
public Integer getId() {... |
| 70 |
0
|
return id; |
| 71 |
|
} |
| 72 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 73 |
0
|
public void setId(Integer id) {... |
| 74 |
0
|
this.id = id; |
| 75 |
|
} |
| 76 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 77 |
0
|
public String getKey() {... |
| 78 |
0
|
return key; |
| 79 |
|
} |
| 80 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 81 |
0
|
public void setKey(String key) {... |
| 82 |
0
|
this.key = key; |
| 83 |
|
} |
| 84 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 85 |
0
|
public Integer getOrder() {... |
| 86 |
0
|
return order; |
| 87 |
|
} |
| 88 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 89 |
0
|
public void setOrder(Integer order) {... |
| 90 |
0
|
this.order = order; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 94 |
0
|
public HashMap<String, String> getTranslations() {... |
| 95 |
0
|
return translations; |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 99 |
0
|
public void setTranslations(HashMap<String, String> translations) {... |
| 100 |
0
|
this.translations = translations; |
| 101 |
|
} |
| 102 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 103 |
0
|
public String getValue() {... |
| 104 |
0
|
return value; |
| 105 |
|
} |
| 106 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 107 |
0
|
public void setValue(String value) {... |
| 108 |
0
|
this.value = value; |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
} |