1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package edu.sampleu.travel.workflow; |
17 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 3 |
Complexity Density: 1 |
|
18 |
|
public class XmlUtils { |
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
@param |
24 |
|
@param |
25 |
|
@return |
26 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
27 |
0
|
public static String encapsulate(String tagName, String content) {... |
28 |
0
|
return openTag(tagName) + content + closeTag(tagName); |
29 |
|
} |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
31 |
0
|
private static String openTag(String tagName) {... |
32 |
0
|
return "<" + tagName + ">"; |
33 |
|
} |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
35 |
0
|
private static String closeTag(String tagName) {... |
36 |
0
|
return "</" + tagName + ">"; |
37 |
|
} |
38 |
|
|
39 |
|
} |