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 org.xwiki.rendering.wikimodel.IWemListenerInline; |
23 |
|
import org.xwiki.rendering.wikimodel.WikiFormat; |
24 |
|
import org.xwiki.rendering.wikimodel.WikiParameters; |
25 |
|
import org.xwiki.rendering.wikimodel.WikiReference; |
26 |
|
|
27 |
|
|
28 |
|
@version |
29 |
|
@since |
30 |
|
|
|
|
| 29.4% |
Uncovered Elements: 24 (34) |
Complexity: 14 |
Complexity Density: 0.7 |
|
31 |
|
public class WemInlineTagNotifier extends AbstractTagNotifier |
32 |
|
implements |
33 |
|
IWemListenerInline |
34 |
|
{ |
35 |
|
|
36 |
|
@param |
37 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
38 |
6 |
public WemInlineTagNotifier(ITagListener listener)... |
39 |
|
{ |
40 |
6 |
super(listener); |
41 |
|
} |
42 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
43 |
11 |
public void beginFormat(WikiFormat format)... |
44 |
|
{ |
45 |
11 |
fListener.beginTag(FORMAT, tagParams(format), userParams(format)); |
46 |
|
} |
47 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
11 |
public void endFormat(WikiFormat format)... |
49 |
|
{ |
50 |
11 |
fListener.endTag(FORMAT, tagParams(format), userParams(format)); |
51 |
|
} |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
53 |
0 |
public void onEscape(String str)... |
54 |
|
{ |
55 |
0 |
fListener.beginTag(ESCAPE, EMPTY_MAP, EMPTY_MAP); |
56 |
0 |
fListener.onText(str); |
57 |
0 |
fListener.endTag(ESCAPE, EMPTY_MAP, EMPTY_MAP); |
58 |
|
} |
59 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
60 |
0 |
public void onImage(String ref)... |
61 |
|
{ |
62 |
0 |
WikiReference r = new WikiReference(ref); |
63 |
0 |
fListener.onTag( |
64 |
|
IMAGE, |
65 |
|
tagParams(tagParams(r), IMAGE_IMPLICIT, "true"), |
66 |
|
userParams(r)); |
67 |
|
} |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0 |
public void onImage(WikiReference ref)... |
70 |
|
{ |
71 |
0 |
fListener.onTag(IMAGE, tagParams( |
72 |
|
tagParams(ref), |
73 |
|
IMAGE_IMPLICIT, |
74 |
|
"false"), userParams(ref)); |
75 |
|
} |
76 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
0 |
public void onLineBreak()... |
78 |
|
{ |
79 |
0 |
fListener.onTag(LINE_BREAK, EMPTY_MAP, EMPTY_MAP); |
80 |
|
} |
81 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
82 |
0 |
public void onNewLine()... |
83 |
|
{ |
84 |
0 |
fListener.onText(NEW_LINE); |
85 |
|
} |
86 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
87 |
0 |
public void onReference(String ref)... |
88 |
|
{ |
89 |
0 |
WikiReference r = new WikiReference(ref); |
90 |
0 |
fListener.onTag(REF_IMPLICIT, tagParams(r), userParams(r)); |
91 |
|
} |
92 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
0 |
public void onReference(WikiReference ref)... |
94 |
|
{ |
95 |
0 |
fListener.onTag(REF_IMPLICIT, tagParams(ref), userParams(ref)); |
96 |
|
} |
97 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
5 |
public void onSpace(String str)... |
99 |
|
{ |
100 |
5 |
fListener.onText(str); |
101 |
|
} |
102 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
0 |
public void onSpecialSymbol(String str)... |
104 |
|
{ |
105 |
|
|
106 |
0 |
fListener.onText(str); |
107 |
|
|
108 |
|
} |
109 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
110 |
0 |
public void onVerbatimInline(String str, WikiParameters params)... |
111 |
|
{ |
112 |
0 |
fListener.beginTag(VERBATIM_INLINE, EMPTY_MAP, userParams(params)); |
113 |
0 |
fListener.onCDATA(str); |
114 |
0 |
fListener.endTag(VERBATIM_INLINE, EMPTY_MAP, userParams(params)); |
115 |
|
} |
116 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
117 |
15 |
public void onWord(String str)... |
118 |
|
{ |
119 |
15 |
fListener.onText(str); |
120 |
|
} |
121 |
|
} |