1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.wikimodel.xml; |
21 |
|
|
22 |
|
import java.util.Map; |
23 |
|
|
24 |
|
import org.xwiki.rendering.wikimodel.IWemListenerProgramming; |
25 |
|
import org.xwiki.rendering.wikimodel.WikiParameters; |
26 |
|
|
27 |
|
|
28 |
|
@version |
29 |
|
@since |
30 |
|
|
|
|
| 11.1% |
Uncovered Elements: 16 (18) |
Complexity: 5 |
Complexity Density: 0.38 |
|
31 |
|
public class WemProgrammingTagNotifier extends AbstractTagNotifier |
32 |
|
implements |
33 |
|
IWemListenerProgramming |
34 |
|
{ |
35 |
|
|
36 |
|
@param |
37 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
38 |
6 |
public WemProgrammingTagNotifier(ITagListener listener)... |
39 |
|
{ |
40 |
6 |
super(listener); |
41 |
|
} |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
43 |
0 |
public void onExtensionBlock(String extensionName, WikiParameters params)... |
44 |
|
{ |
45 |
0 |
fListener.onTag(EXTENSION_BLOCK, tagParams( |
46 |
|
EXTENSION_NAME, |
47 |
|
extensionName), userParams(params)); |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0 |
public void onExtensionInline(String extensionName, WikiParameters params)... |
51 |
|
{ |
52 |
0 |
fListener.onTag(EXTENSION_INLINE, tagParams( |
53 |
|
EXTENSION_NAME, |
54 |
|
extensionName), userParams(params)); |
55 |
|
} |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
57 |
0 |
public void onMacroBlock(... |
58 |
|
String macroName, |
59 |
|
WikiParameters params, |
60 |
|
String content) |
61 |
|
{ |
62 |
0 |
Map<String, String> tagParams = tagParams(MACRO_NAME, macroName); |
63 |
0 |
Map<String, String> userParams = userParams(params); |
64 |
0 |
fListener.beginTag(MACRO_BLOCK, tagParams, userParams); |
65 |
0 |
fListener.onCDATA(content); |
66 |
0 |
fListener.endTag(MACRO_BLOCK, tagParams, userParams); |
67 |
|
} |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
69 |
0 |
public void onMacroInline(... |
70 |
|
String macroName, |
71 |
|
WikiParameters params, |
72 |
|
String content) |
73 |
|
{ |
74 |
0 |
Map<String, String> tagParams = tagParams(MACRO_NAME, macroName); |
75 |
0 |
Map<String, String> userParams = userParams(params); |
76 |
0 |
fListener.beginTag(MACRO_INLINE, tagParams, userParams); |
77 |
0 |
fListener.onCDATA(content); |
78 |
0 |
fListener.endTag(MACRO_INLINE, tagParams, userParams); |
79 |
|
} |
80 |
|
} |