1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.listener.reference; |
21 |
|
|
22 |
|
import org.apache.commons.lang3.StringUtils; |
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@version |
28 |
|
@since |
29 |
|
@since |
30 |
|
|
|
|
| 12.5% |
Uncovered Elements: 14 (16) |
Complexity: 7 |
Complexity Density: 1 |
|
31 |
|
public class SpaceResourceReference extends ResourceReference |
32 |
|
{ |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
public static final String QUERY_STRING = "queryString"; |
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
public static final String ANCHOR = "anchor"; |
42 |
|
|
43 |
|
|
44 |
|
@param@link |
45 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
46 |
15 |
public SpaceResourceReference(String reference)... |
47 |
|
{ |
48 |
15 |
super(reference, ResourceType.SPACE); |
49 |
|
} |
50 |
|
|
51 |
|
|
52 |
|
@return |
53 |
|
|
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0 |
public String getQueryString()... |
56 |
|
{ |
57 |
0 |
return getParameter(QUERY_STRING); |
58 |
|
} |
59 |
|
|
60 |
|
|
61 |
|
@param@link |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
63 |
0 |
public void setQueryString(String queryString)... |
64 |
|
{ |
65 |
0 |
if (!StringUtils.isEmpty(queryString)) { |
66 |
0 |
setParameter(QUERY_STRING, queryString); |
67 |
|
} |
68 |
|
} |
69 |
|
|
70 |
|
|
71 |
|
@return |
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0 |
public String getAnchor()... |
77 |
|
{ |
78 |
0 |
return getParameter(ANCHOR); |
79 |
|
} |
80 |
|
|
81 |
|
|
82 |
|
@param@link |
83 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
84 |
0 |
public void setAnchor(String anchor)... |
85 |
|
{ |
86 |
0 |
if (!StringUtils.isEmpty(anchor)) { |
87 |
0 |
setParameter(ANCHOR, anchor); |
88 |
|
} |
89 |
|
} |
90 |
|
} |