1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package com.xpn.xwiki.internal.filter; |
21 |
|
|
22 |
|
import java.io.InputStream; |
23 |
|
import java.util.List; |
24 |
|
import java.util.Locale; |
25 |
|
|
26 |
|
import org.xwiki.filter.FilterEventParameters; |
27 |
|
import org.xwiki.filter.FilterException; |
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
@version |
33 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (59) |
Complexity: 20 |
Complexity Density: 0.51 |
|
34 |
|
public class XWikiDocumentFilterCollection implements XWikiDocumentFilter |
35 |
|
{ |
36 |
|
private final List<? extends XWikiDocumentFilter> filters; |
37 |
|
|
38 |
|
|
39 |
|
@param |
40 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
41 |
11893 |
public XWikiDocumentFilterCollection(List<? extends XWikiDocumentFilter> filters)... |
42 |
|
{ |
43 |
11893 |
this.filters = filters; |
44 |
|
} |
45 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
46 |
36 |
@Override... |
47 |
|
public void beginWiki(String name, FilterEventParameters parameters) throws FilterException |
48 |
|
{ |
49 |
36 |
for (XWikiDocumentFilter filter : filters) { |
50 |
99 |
filter.beginWiki(name, parameters); |
51 |
|
} |
52 |
|
} |
53 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
54 |
36 |
@Override... |
55 |
|
public void endWiki(String name, FilterEventParameters parameters) throws FilterException |
56 |
|
{ |
57 |
36 |
for (XWikiDocumentFilter filter : filters) { |
58 |
99 |
filter.endWiki(name, parameters); |
59 |
|
} |
60 |
|
} |
61 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
62 |
10168 |
@Override... |
63 |
|
public void beginWikiSpace(String name, FilterEventParameters parameters) throws FilterException |
64 |
|
{ |
65 |
10168 |
for (XWikiDocumentFilter filter : filters) { |
66 |
27962 |
filter.beginWikiSpace(name, parameters); |
67 |
|
} |
68 |
|
} |
69 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
70 |
10168 |
@Override... |
71 |
|
public void endWikiSpace(String name, FilterEventParameters parameters) throws FilterException |
72 |
|
{ |
73 |
10168 |
for (XWikiDocumentFilter filter : filters) { |
74 |
27962 |
filter.endWikiSpace(name, parameters); |
75 |
|
} |
76 |
|
} |
77 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
78 |
10160 |
@Override... |
79 |
|
public void beginWikiDocument(String name, FilterEventParameters parameters) throws FilterException |
80 |
|
{ |
81 |
10160 |
for (XWikiDocumentFilter filter : filters) { |
82 |
27940 |
filter.beginWikiDocument(name, parameters); |
83 |
|
} |
84 |
|
} |
85 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
86 |
10160 |
@Override... |
87 |
|
public void endWikiDocument(String name, FilterEventParameters parameters) throws FilterException |
88 |
|
{ |
89 |
10160 |
for (XWikiDocumentFilter filter : filters) { |
90 |
27940 |
filter.endWikiDocument(name, parameters); |
91 |
|
} |
92 |
|
} |
93 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
94 |
10152 |
@Override... |
95 |
|
public void beginWikiDocumentLocale(Locale locale, FilterEventParameters parameters) throws FilterException |
96 |
|
{ |
97 |
10152 |
for (XWikiDocumentFilter filter : filters) { |
98 |
27918 |
filter.beginWikiDocumentLocale(locale, parameters); |
99 |
|
} |
100 |
|
} |
101 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
102 |
10152 |
@Override... |
103 |
|
public void endWikiDocumentLocale(Locale locale, FilterEventParameters parameters) throws FilterException |
104 |
|
{ |
105 |
10152 |
for (XWikiDocumentFilter filter : filters) { |
106 |
27918 |
filter.endWikiDocumentLocale(locale, parameters); |
107 |
|
} |
108 |
|
} |
109 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
110 |
10152 |
@Override... |
111 |
|
public void beginWikiDocumentRevision(String revision, FilterEventParameters parameters) throws FilterException |
112 |
|
{ |
113 |
10152 |
for (XWikiDocumentFilter filter : filters) { |
114 |
27918 |
filter.beginWikiDocumentRevision(revision, parameters); |
115 |
|
} |
116 |
|
} |
117 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
118 |
10152 |
@Override... |
119 |
|
public void endWikiDocumentRevision(String revision, FilterEventParameters parameters) throws FilterException |
120 |
|
{ |
121 |
10152 |
for (XWikiDocumentFilter filter : filters) { |
122 |
27918 |
filter.endWikiDocumentRevision(revision, parameters); |
123 |
|
} |
124 |
|
} |
125 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
126 |
1796 |
@Override... |
127 |
|
public void onWikiAttachment(String name, InputStream content, Long size, FilterEventParameters parameters) |
128 |
|
throws FilterException |
129 |
|
{ |
130 |
1796 |
for (XWikiDocumentFilter filter : filters) { |
131 |
4939 |
filter.onWikiAttachment(name, content, size, parameters); |
132 |
|
} |
133 |
|
} |
134 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
135 |
14845 |
@Override... |
136 |
|
public void beginWikiClass(FilterEventParameters parameters) throws FilterException |
137 |
|
{ |
138 |
14844 |
for (XWikiDocumentFilter filter : filters) { |
139 |
39515 |
filter.beginWikiClass(parameters); |
140 |
|
} |
141 |
|
} |
142 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
143 |
14844 |
@Override... |
144 |
|
public void endWikiClass(FilterEventParameters parameters) throws FilterException |
145 |
|
{ |
146 |
14845 |
for (XWikiDocumentFilter filter : filters) { |
147 |
39514 |
filter.endWikiClass(parameters); |
148 |
|
} |
149 |
|
} |
150 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
151 |
80608 |
@Override... |
152 |
|
public void beginWikiClassProperty(String name, String type, FilterEventParameters parameters) |
153 |
|
throws FilterException |
154 |
|
{ |
155 |
80609 |
for (XWikiDocumentFilter filter : filters) { |
156 |
204299 |
filter.beginWikiClassProperty(name, type, parameters); |
157 |
|
} |
158 |
|
} |
159 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
160 |
80608 |
@Override... |
161 |
|
public void endWikiClassProperty(String name, String type, FilterEventParameters parameters) throws FilterException |
162 |
|
{ |
163 |
80610 |
for (XWikiDocumentFilter filter : filters) { |
164 |
204299 |
filter.endWikiClassProperty(name, type, parameters); |
165 |
|
} |
166 |
|
} |
167 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
168 |
705934 |
@Override... |
169 |
|
public void onWikiClassPropertyField(String name, String value, FilterEventParameters parameters) |
170 |
|
throws FilterException |
171 |
|
{ |
172 |
705940 |
for (XWikiDocumentFilter filter : filters) { |
173 |
1801758 |
filter.onWikiClassPropertyField(name, value, parameters); |
174 |
|
} |
175 |
|
} |
176 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
177 |
11792 |
@Override... |
178 |
|
public void beginWikiObject(String name, FilterEventParameters parameters) throws FilterException |
179 |
|
{ |
180 |
11792 |
for (XWikiDocumentFilter filter : filters) { |
181 |
32428 |
filter.beginWikiObject(name, parameters); |
182 |
|
} |
183 |
|
} |
184 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
185 |
11792 |
@Override... |
186 |
|
public void endWikiObject(String name, FilterEventParameters parameters) throws FilterException |
187 |
|
{ |
188 |
11792 |
for (XWikiDocumentFilter filter : filters) { |
189 |
32428 |
filter.endWikiObject(name, parameters); |
190 |
|
} |
191 |
|
} |
192 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
193 |
49204 |
@Override... |
194 |
|
public void onWikiObjectProperty(String name, Object value, FilterEventParameters parameters) throws FilterException |
195 |
|
{ |
196 |
49204 |
for (XWikiDocumentFilter filter : filters) { |
197 |
135311 |
filter.onWikiObjectProperty(name, value, parameters); |
198 |
|
} |
199 |
|
} |
200 |
|
} |