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.model; |
20 |
|
|
21 |
|
import javax.annotation.Nonnull; |
22 |
|
|
23 |
|
import java.util.Collections; |
24 |
|
import java.util.List; |
25 |
|
|
26 |
|
import org.apache.commons.lang3.builder.ToStringBuilder; |
27 |
|
|
28 |
|
|
29 |
|
@author |
30 |
|
@since |
31 |
|
|
|
|
| 51,3% |
Uncovered Elements: 19 (39) |
Complexity: 16 |
Complexity Density: 0,73 |
|
32 |
|
public class SideNavMenuItem { |
33 |
|
|
34 |
|
|
35 |
|
private String name; |
36 |
|
|
37 |
|
|
38 |
|
private String href; |
39 |
|
|
40 |
|
|
41 |
|
private String icon; |
42 |
|
|
43 |
|
|
44 |
|
private String slugName; |
45 |
|
|
46 |
|
|
47 |
|
private List<SideNavMenuItem> items; |
48 |
|
|
49 |
|
|
50 |
|
private String parent; |
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
55 |
21 |
public SideNavMenuItem() {... |
56 |
|
} |
57 |
|
|
58 |
|
|
59 |
|
@return |
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0 |
public String getName() {... |
62 |
0 |
return name; |
63 |
|
} |
64 |
|
|
65 |
|
|
66 |
|
@param |
67 |
|
|
68 |
|
@return |
69 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
70 |
21 |
public SideNavMenuItem withName(final String name) {... |
71 |
21 |
this.name = name; |
72 |
21 |
return this; |
73 |
|
} |
74 |
|
|
75 |
|
|
76 |
|
@return |
77 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
78 |
1 |
public String getParent() {... |
79 |
1 |
return parent; |
80 |
|
} |
81 |
|
|
82 |
|
|
83 |
|
@param |
84 |
|
|
85 |
|
@return |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
87 |
21 |
public SideNavMenuItem withParent(final String parent) {... |
88 |
21 |
this.parent = parent; |
89 |
21 |
return this; |
90 |
|
} |
91 |
|
|
92 |
|
|
93 |
|
@return |
94 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
0 |
public String getHref() {... |
96 |
0 |
return href; |
97 |
|
} |
98 |
|
|
99 |
|
|
100 |
|
@param |
101 |
|
|
102 |
|
@return |
103 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
104 |
21 |
public SideNavMenuItem withHref(final String href) {... |
105 |
21 |
this.href = href; |
106 |
21 |
return this; |
107 |
|
} |
108 |
|
|
109 |
|
|
110 |
|
@return@link |
111 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
112 |
22 |
public String getSlugName() {... |
113 |
22 |
return slugName; |
114 |
|
} |
115 |
|
|
116 |
|
|
117 |
|
@param |
118 |
|
|
119 |
|
@return |
120 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
121 |
21 |
public SideNavMenuItem withSlugName(final String slugName) {... |
122 |
21 |
this.slugName = slugName; |
123 |
21 |
return this; |
124 |
|
} |
125 |
|
|
126 |
|
|
127 |
|
@return |
128 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
129 |
0 |
public String getIcon() {... |
130 |
0 |
return icon; |
131 |
|
} |
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
@param |
137 |
|
|
138 |
|
@return |
139 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
140 |
21 |
public SideNavMenuItem withIcon(final String icon) {... |
141 |
21 |
this.icon = icon; |
142 |
21 |
return this; |
143 |
|
} |
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
@return |
149 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
150 |
0 |
public boolean isHasItems() {... |
151 |
0 |
return items != null && !items.isEmpty(); |
152 |
|
} |
153 |
|
|
154 |
|
|
155 |
|
|
156 |
|
|
157 |
|
@return@link |
158 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0,67 |
|
159 |
0 |
@Nonnull... |
160 |
|
public List<SideNavMenuItem> getItems() { |
161 |
0 |
if (items == null) { |
162 |
0 |
return Collections.emptyList(); |
163 |
|
} |
164 |
0 |
return items; |
165 |
|
} |
166 |
|
|
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
@param |
171 |
|
|
172 |
|
@return |
173 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
174 |
0 |
public SideNavMenuItem withItems(final List<SideNavMenuItem> items) {... |
175 |
0 |
this.items = items; |
176 |
0 |
return this; |
177 |
|
} |
178 |
|
|
179 |
|
|
180 |
|
@inheritDoc |
181 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
182 |
0 |
@Override... |
183 |
|
public String toString() { |
184 |
0 |
return ToStringBuilder.reflectionToString(this); |
185 |
|
} |
186 |
|
} |