| 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 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 |
|
|
| 29 |
|
|
| 30 |
|
@author |
| 31 |
|
|
| 32 |
|
|
|
|
|
| 0% |
Uncovered Elements: 34 (34) |
Complexity: 14 |
Complexity Density: 0.7 |
|
| 33 |
|
public class ComponentForm extends ValidatorForm { |
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
private static final long serialVersionUID = 1L; |
| 38 |
|
String action; |
| 39 |
|
Integer id; |
| 40 |
|
Integer projectId; |
| 41 |
|
String name; |
| 42 |
|
String description; |
| 43 |
|
Integer status; |
| 44 |
|
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
| 45 |
0
|
public void reset(ActionMapping mapping, HttpServletRequest request) {... |
| 46 |
0
|
action = null; |
| 47 |
0
|
id = null; |
| 48 |
0
|
projectId = null; |
| 49 |
0
|
name = null; |
| 50 |
0
|
description = null; |
| 51 |
0
|
status = 0; |
| 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 String getDescription() {... |
| 70 |
0
|
return description; |
| 71 |
|
} |
| 72 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 73 |
0
|
public void setDescription(String description) {... |
| 74 |
0
|
this.description = description; |
| 75 |
|
} |
| 76 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 77 |
0
|
public Integer getId() {... |
| 78 |
0
|
return id; |
| 79 |
|
} |
| 80 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 81 |
0
|
public void setId(Integer id) {... |
| 82 |
0
|
this.id = id; |
| 83 |
|
} |
| 84 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 85 |
0
|
public String getName() {... |
| 86 |
0
|
return name; |
| 87 |
|
} |
| 88 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 89 |
0
|
public void setName(String name) {... |
| 90 |
0
|
this.name = name; |
| 91 |
|
} |
| 92 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 93 |
0
|
public Integer getProjectId() {... |
| 94 |
0
|
return projectId; |
| 95 |
|
} |
| 96 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 97 |
0
|
public void setProjectId(Integer projectId) {... |
| 98 |
0
|
this.projectId = projectId; |
| 99 |
|
} |
| 100 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 101 |
0
|
public Integer getStatus() {... |
| 102 |
0
|
return status; |
| 103 |
|
} |
| 104 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 105 |
0
|
public void setStatus(Integer status) {... |
| 106 |
0
|
this.status = status; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
} |