1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.macro.context; |
21 |
|
|
22 |
|
import org.xwiki.properties.annotation.PropertyDescription; |
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@version |
28 |
|
@since |
29 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
30 |
|
public class ContextMacroParameters |
31 |
|
{ |
32 |
|
|
33 |
|
@see |
34 |
|
|
35 |
|
private String documentReference; |
36 |
|
|
37 |
|
|
38 |
|
@see |
39 |
|
@since |
40 |
|
@since |
41 |
|
|
42 |
|
private TransformationContextMode transformationContextMode = TransformationContextMode.CURRENT; |
43 |
|
|
44 |
|
|
45 |
|
@return |
46 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
47 |
21 |
public String getDocument()... |
48 |
|
{ |
49 |
21 |
return this.documentReference; |
50 |
|
} |
51 |
|
|
52 |
|
|
53 |
|
@param@link |
54 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
5 |
@PropertyDescription("The reference to the document serving as the current document")... |
56 |
|
public void setDocument(String documentReference) |
57 |
|
{ |
58 |
5 |
this.documentReference = documentReference; |
59 |
|
} |
60 |
|
|
61 |
|
|
62 |
|
@return |
63 |
|
@link |
64 |
|
@since |
65 |
|
@since |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
10 |
public TransformationContextMode getTransformationContext()... |
68 |
|
{ |
69 |
10 |
return this.transformationContextMode; |
70 |
|
} |
71 |
|
|
72 |
|
|
73 |
|
@param@link |
74 |
|
@since |
75 |
|
@since |
76 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
1 |
@PropertyDescription("The Transformation Context mode to use. "... |
78 |
|
+ "Valid values are \"current\", \"document\" and \"transformations\"") |
79 |
|
public void setTransformationContext(TransformationContextMode mode) |
80 |
|
{ |
81 |
1 |
this.transformationContextMode = mode; |
82 |
|
} |
83 |
|
} |