1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
package org.devacfr.maven.skins.reflow.context; |
20 |
|
|
21 |
|
import javax.annotation.Nonnull; |
22 |
|
|
23 |
|
import org.devacfr.maven.skins.reflow.ISkinConfig; |
24 |
|
import org.devacfr.maven.skins.reflow.model.Header; |
25 |
|
import org.devacfr.maven.skins.reflow.model.Toc; |
26 |
|
|
27 |
|
import static org.devacfr.maven.skins.reflow.model.Toc.createToc; |
28 |
|
|
29 |
|
|
30 |
|
@author |
31 |
|
@since |
32 |
|
|
|
|
| 77,8% |
Uncovered Elements: 2 (9) |
Complexity: 3 |
Complexity Density: 0,5 |
|
33 |
|
public class PageContext extends Context<PageContext> { |
34 |
|
|
35 |
|
|
36 |
|
private final Toc<?> toc; |
37 |
|
|
38 |
|
|
39 |
|
private final Header header; |
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
@param |
45 |
|
|
46 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0,25 |
|
47 |
13 |
public PageContext(final @Nonnull ISkinConfig config) {... |
48 |
13 |
super(config, ContextType.page); |
49 |
13 |
this.toc = createToc(config, null); |
50 |
13 |
this.header = new Header(config); |
51 |
13 |
this.addChildren(this.header, this.toc); |
52 |
|
} |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
@return |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0 |
public Header getHeader() {... |
60 |
0 |
return header; |
61 |
|
} |
62 |
|
|
63 |
|
|
64 |
|
@return@link |
65 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
66 |
3 |
public Toc<?> getToc() {... |
67 |
3 |
return toc; |
68 |
|
} |
69 |
|
} |