1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.internal.parser; |
21 |
|
|
22 |
|
import javax.inject.Inject; |
23 |
|
import javax.inject.Named; |
24 |
|
import javax.inject.Singleton; |
25 |
|
|
26 |
|
import org.xwiki.rendering.wikimodel.IWikiParser; |
27 |
|
import org.xwiki.rendering.wikimodel.mediawiki.MediaWikiParser; |
28 |
|
import org.xwiki.component.annotation.Component; |
29 |
|
import org.xwiki.rendering.parser.ResourceReferenceParser; |
30 |
|
import org.xwiki.rendering.syntax.Syntax; |
31 |
|
import org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser; |
32 |
|
|
33 |
|
|
34 |
|
@version |
35 |
|
@since |
36 |
|
|
37 |
|
@Component |
38 |
|
@Named("mediawiki/1.0") |
39 |
|
@Singleton |
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
40 |
|
public class WikiModelMediaWikiParser extends AbstractWikiModelParser |
41 |
|
{ |
42 |
|
|
43 |
|
@see |
44 |
|
|
45 |
|
@Inject |
46 |
|
@Named("default/link") |
47 |
|
private ResourceReferenceParser linkReferenceParser; |
48 |
|
|
49 |
|
|
50 |
|
@see |
51 |
|
|
52 |
|
@Inject |
53 |
|
@Named("default/image") |
54 |
|
private ResourceReferenceParser imageReferenceParser; |
55 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
2
|
@Override... |
57 |
|
public Syntax getSyntax() |
58 |
|
{ |
59 |
2
|
return Syntax.MEDIAWIKI_1_0; |
60 |
|
} |
61 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
2
|
@Override... |
63 |
|
public IWikiParser createWikiModelParser() |
64 |
|
{ |
65 |
2
|
return new MediaWikiParser(); |
66 |
|
} |
67 |
|
|
68 |
|
|
69 |
|
@inheritDoc |
70 |
|
@see |
71 |
|
@since |
72 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
2
|
@Override... |
74 |
|
public ResourceReferenceParser getLinkReferenceParser() |
75 |
|
{ |
76 |
2
|
return this.linkReferenceParser; |
77 |
|
} |
78 |
|
|
79 |
|
|
80 |
|
@inheritDoc |
81 |
|
|
82 |
|
@see |
83 |
|
@since |
84 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
2
|
@Override... |
86 |
|
public ResourceReferenceParser getImageReferenceParser() |
87 |
|
{ |
88 |
2
|
return this.imageReferenceParser; |
89 |
|
} |
90 |
|
} |