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.component.annotation.Component; |
27 |
|
import org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser; |
28 |
|
import org.xwiki.rendering.parser.ResourceReferenceParser; |
29 |
|
import org.xwiki.rendering.syntax.Syntax; |
30 |
|
import org.xwiki.rendering.wikimodel.IWikiParser; |
31 |
|
import org.xwiki.rendering.wikimodel.confluence.ConfluenceWikiParser; |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
@version |
37 |
|
@since |
38 |
|
|
39 |
|
@Component |
40 |
|
@Named("confluence/1.0") |
41 |
|
@Singleton |
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
42 |
|
public class WikiModelConfluenceParser extends AbstractWikiModelParser |
43 |
|
{ |
44 |
|
|
45 |
|
@see |
46 |
|
|
47 |
|
@Inject |
48 |
|
@Named("default/link") |
49 |
|
private ResourceReferenceParser referenceParser; |
50 |
|
|
51 |
|
|
52 |
|
@see |
53 |
|
|
54 |
|
@Inject |
55 |
|
@Named("default/image") |
56 |
|
private ResourceReferenceParser imageReferenceParser; |
57 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
2
|
@Override... |
59 |
|
public Syntax getSyntax() |
60 |
|
{ |
61 |
2
|
return Syntax.CONFLUENCE_1_0; |
62 |
|
} |
63 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
2
|
@Override... |
65 |
|
public IWikiParser createWikiModelParser() |
66 |
|
{ |
67 |
2
|
return new ConfluenceWikiParser(); |
68 |
|
} |
69 |
|
|
70 |
|
|
71 |
|
@inheritDoc |
72 |
|
@see |
73 |
|
@since |
74 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
2
|
@Override... |
76 |
|
public ResourceReferenceParser getLinkReferenceParser() |
77 |
|
{ |
78 |
2
|
return this.referenceParser; |
79 |
|
} |
80 |
|
|
81 |
|
|
82 |
|
@inheritDoc |
83 |
|
|
84 |
|
@see |
85 |
|
@since |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
87 |
2
|
@Override... |
88 |
|
public ResourceReferenceParser getImageReferenceParser() |
89 |
|
{ |
90 |
2
|
return this.imageReferenceParser; |
91 |
|
} |
92 |
|
} |