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.IWemListenerSimpleBlocks; |
25 |
|
import org.xwiki.rendering.wikimodel.WikiParameters; |
26 |
|
|
27 |
|
|
28 |
|
@version |
29 |
|
@since |
30 |
|
|
|
|
| 31.6% |
Uncovered Elements: 13 (19) |
Complexity: 8 |
Complexity Density: 0.73 |
|
31 |
|
public class WemSimpleBlockTagNotifier extends AbstractTagNotifier |
32 |
|
implements IWemListenerSimpleBlocks |
33 |
|
{ |
34 |
|
|
35 |
|
@param |
36 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
37 |
6
|
public WemSimpleBlockTagNotifier(ITagListener listener)... |
38 |
|
{ |
39 |
6
|
super(listener); |
40 |
|
} |
41 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
42 |
0
|
public void beginInfoBlock(String infoType, WikiParameters params)... |
43 |
|
{ |
44 |
0
|
fListener.beginTag( |
45 |
|
INFO_BLOCK, |
46 |
|
tagParams(INFO_BLOCK_TYPE, infoType), |
47 |
|
userParams(params)); |
48 |
|
} |
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
2
|
public void beginParagraph(WikiParameters params)... |
51 |
|
{ |
52 |
2
|
fListener.beginTag(PARAGRAPH, EMPTY_MAP, userParams(params)); |
53 |
|
} |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0
|
public void endInfoBlock(String infoType, WikiParameters params)... |
56 |
|
{ |
57 |
0
|
fListener.endTag( |
58 |
|
INFO_BLOCK, |
59 |
|
tagParams(INFO_BLOCK_TYPE, infoType), |
60 |
|
userParams(params)); |
61 |
|
} |
62 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
2
|
public void endParagraph(WikiParameters params)... |
64 |
|
{ |
65 |
2
|
fListener.endTag(PARAGRAPH, EMPTY_MAP, userParams(params)); |
66 |
|
} |
67 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
0
|
public void onEmptyLines(int count)... |
69 |
|
{ |
70 |
0
|
fListener.onTag( |
71 |
|
EMPTY_LINES, |
72 |
|
tagParams(EMPTY_LINES_SIZE, "" + count), |
73 |
|
EMPTY_MAP); |
74 |
|
} |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0
|
public void onHorizontalLine(WikiParameters params)... |
77 |
|
{ |
78 |
0
|
fListener.onTag(HORIZONTAL_LINE, EMPTY_MAP, userParams(params)); |
79 |
|
} |
80 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
81 |
0
|
public void onVerbatimBlock(String str, WikiParameters params)... |
82 |
|
{ |
83 |
0
|
Map<String, String> userParams = userParams(params); |
84 |
0
|
fListener.beginTag(VERBATIM_BLOCK, EMPTY_MAP, userParams); |
85 |
0
|
fListener.onCDATA(str); |
86 |
0
|
fListener.endTag(VERBATIM_BLOCK, EMPTY_MAP, userParams); |
87 |
|
} |
88 |
|
} |