• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moosetechnology / VerveineJ / 22185271598

19 Feb 2026 02:12PM UTC coverage: 51.954% (+0.4%) from 51.544%
22185271598

push

github

web-flow
Merge pull request #199 from moosetechnology/initializers

Introducing initializers

1972 of 3976 branches covered (49.6%)

Branch coverage included in aggregate %.

105 of 127 new or added lines in 26 files covered. (82.68%)

1 existing line in 1 file now uncovered.

4343 of 8179 relevant lines covered (53.1%)

2.15 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

23.21
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Package.java
1
// Automagically generated code, please do not change
2
package org.moosetechnology.model.famix.famixjavaentities;
3

4
import ch.akuhn.fame.FameDescription;
5
import ch.akuhn.fame.FamePackage;
6
import ch.akuhn.fame.FameProperty;
7
import ch.akuhn.fame.internal.MultivalueSet;
8
import java.util.*;
9
import org.moosetechnology.model.famix.famixtraits.TComment;
10
import org.moosetechnology.model.famix.famixtraits.TImport;
11
import org.moosetechnology.model.famix.famixtraits.TImportable;
12
import org.moosetechnology.model.famix.famixtraits.TPackage;
13
import org.moosetechnology.model.famix.famixtraits.TPackageable;
14
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
15
import org.moosetechnology.model.famix.famixtraits.TWithComments;
16

17

18
@FamePackage("Famix-Java-Entities")
19
@FameDescription("Package")
20
public class Package extends ContainerEntity implements TImportable, TPackage, TPackageable, TWithComments {
3✔
21

22
    private Collection<TPackageable> childEntities; 
23

24
    private Collection<TComment> comments; 
25

26
    private Collection<TImport> incomingImports; 
27

28
    private Boolean isStub;
29
    
30
    private String name;
31
    
32
    private Number numberOfLinesOfCode;
33
    
34
    private TPackage parentPackage;
35
    
36
    private TSourceAnchor sourceAnchor;
37
    
38

39

40
    @FameProperty(name = "abstractness", derived = true)
41
    public Number getAbstractness() {
42
        // TODO: this is a derived property, implement this method manually.
43
        throw new UnsupportedOperationException("Not yet implemented!");  
×
44
    }
45
    
46
    @FameProperty(name = "afferentCoupling", derived = true)
47
    public Number getAfferentCoupling() {
48
        // TODO: this is a derived property, implement this method manually.
49
        throw new UnsupportedOperationException("Not yet implemented!");  
×
50
    }
51
    
52
    @FameProperty(name = "bunchCohesion", derived = true)
53
    public Number getBunchCohesion() {
54
        // TODO: this is a derived property, implement this method manually.
55
        throw new UnsupportedOperationException("Not yet implemented!");  
×
56
    }
57
    
58
    @FameProperty(name = "distance", derived = true)
59
    public Number getDistance() {
60
        // TODO: this is a derived property, implement this method manually.
61
        throw new UnsupportedOperationException("Not yet implemented!");  
×
62
    }
63
    
64
    @FameProperty(name = "efferentCoupling", derived = true)
65
    public Number getEfferentCoupling() {
66
        // TODO: this is a derived property, implement this method manually.
67
        throw new UnsupportedOperationException("Not yet implemented!");  
×
68
    }
69
    
70
    @FameProperty(name = "instability", derived = true)
71
    public Number getInstability() {
72
        // TODO: this is a derived property, implement this method manually.
73
        throw new UnsupportedOperationException("Not yet implemented!");  
×
74
    }
75
    
76
    @FameProperty(name = "martinCohesion", derived = true)
77
    public Number getMartinCohesion() {
78
        // TODO: this is a derived property, implement this method manually.
79
        throw new UnsupportedOperationException("Not yet implemented!");  
×
80
    }
81
    
82
    @FameProperty(name = "numberOfClientPackages", derived = true)
83
    public Number getNumberOfClientPackages() {
84
        // TODO: this is a derived property, implement this method manually.
85
        throw new UnsupportedOperationException("Not yet implemented!");  
×
86
    }
87
    
88
    @FameProperty(name = "numberOfMethods", derived = true)
89
    public Number getNumberOfMethods() {
90
        // TODO: this is a derived property, implement this method manually.
91
        throw new UnsupportedOperationException("Not yet implemented!");  
×
92
    }
93
    
94
    @FameProperty(name = "relativeImportanceForSystem", derived = true)
95
    public Number getRelativeImportanceForSystem() {
96
        // TODO: this is a derived property, implement this method manually.
97
        throw new UnsupportedOperationException("Not yet implemented!");  
×
98
    }
99
    
100
    @FameProperty(name = "childEntities", opposite = "parentPackage", derived = true)
101
    public Collection<TPackageable> getChildEntities() {
102
        if (childEntities == null) {
3✔
103
            childEntities = new MultivalueSet<TPackageable>() {
12✔
104
                @Override
105
                protected void clearOpposite(TPackageable e) {
106
                    e.setParentPackage(null);
×
107
                }
×
108
                @Override
109
                protected void setOpposite(TPackageable e) {
110
                    e.setParentPackage(Package.this);
4✔
111
                }
1✔
112
            };
113
        }
114
        return childEntities;
3✔
115
    }
116
    
117
    public void setChildEntities(Collection<? extends TPackageable> childEntities) {
118
        this.getChildEntities().clear();
×
119
        this.getChildEntities().addAll(childEntities);
×
120
    }                    
×
121
    
122
        
123
    public void addChildEntities(TPackageable one) {
124
        this.getChildEntities().add(one);
5✔
125
    }   
1✔
126
    
127
    public void addChildEntities(TPackageable one, TPackageable... many) {
128
        this.getChildEntities().add(one);
×
129
        for (TPackageable each : many)
×
130
            this.getChildEntities().add(each);
×
131
    }   
×
132
    
133
    public void addChildEntities(Iterable<? extends TPackageable> many) {
134
        for (TPackageable each : many)
×
135
            this.getChildEntities().add(each);
×
136
    }   
×
137
                
138
    public void addChildEntities(TPackageable[] many) {
139
        for (TPackageable each : many)
×
140
            this.getChildEntities().add(each);
×
141
    }
×
142
    
143
    public int numberOfChildEntities() {
144
        return getChildEntities().size();
×
145
    }
146

147
    public boolean hasChildEntities() {
148
        return !getChildEntities().isEmpty();
×
149
    }
150

151
    @FameProperty(name = "comments", opposite = "commentedEntity", derived = true)
152
    public Collection<TComment> getComments() {
153
        if (comments == null) {
3✔
154
            comments = new MultivalueSet<TComment>() {
12✔
155
                @Override
156
                protected void clearOpposite(TComment e) {
157
                    e.setCommentedEntity(null);
×
158
                }
×
159
                @Override
160
                protected void setOpposite(TComment e) {
161
                    e.setCommentedEntity(Package.this);
×
162
                }
×
163
            };
164
        }
165
        return comments;
3✔
166
    }
167
    
168
    public void setComments(Collection<? extends TComment> comments) {
169
        this.getComments().clear();
×
170
        this.getComments().addAll(comments);
×
171
    }                    
×
172
    
173
        
174
    public void addComments(TComment one) {
175
        this.getComments().add(one);
×
176
    }   
×
177
    
178
    public void addComments(TComment one, TComment... many) {
179
        this.getComments().add(one);
×
180
        for (TComment each : many)
×
181
            this.getComments().add(each);
×
182
    }   
×
183
    
184
    public void addComments(Iterable<? extends TComment> many) {
185
        for (TComment each : many)
×
186
            this.getComments().add(each);
×
187
    }   
×
188
                
189
    public void addComments(TComment[] many) {
190
        for (TComment each : many)
×
191
            this.getComments().add(each);
×
192
    }
×
193
    
194
    public int numberOfComments() {
195
        return getComments().size();
×
196
    }
197

198
    public boolean hasComments() {
199
        return !getComments().isEmpty();
×
200
    }
201

202
    @FameProperty(name = "fanIn", derived = true)
203
    public Number getFanIn() {
204
        // TODO: this is a derived property, implement this method manually.
205
        throw new UnsupportedOperationException("Not yet implemented!");  
×
206
    }
207
    
208
    @FameProperty(name = "fanOut", derived = true)
209
    public Number getFanOut() {
210
        // TODO: this is a derived property, implement this method manually.
211
        throw new UnsupportedOperationException("Not yet implemented!");  
×
212
    }
213
    
214
    @FameProperty(name = "hasComments", derived = true)
215
    public Boolean getHasComments() {
216
        // TODO: this is a derived property, implement this method manually.
217
        throw new UnsupportedOperationException("Not yet implemented!");  
×
218
    }
219
    
220
    @FameProperty(name = "incomingImports", opposite = "importedEntity", derived = true)
221
    public Collection<TImport> getIncomingImports() {
222
        if (incomingImports == null) {
3✔
223
            incomingImports = new MultivalueSet<TImport>() {
12✔
224
                @Override
225
                protected void clearOpposite(TImport e) {
226
                    e.setImportedEntity(null);
×
227
                }
×
228
                @Override
229
                protected void setOpposite(TImport e) {
230
                    e.setImportedEntity(Package.this);
×
231
                }
×
232
            };
233
        }
234
        return incomingImports;
3✔
235
    }
236
    
237
    public void setIncomingImports(Collection<? extends TImport> incomingImports) {
238
        this.getIncomingImports().clear();
×
239
        this.getIncomingImports().addAll(incomingImports);
×
240
    }                    
×
241
    
242
        
243
    public void addIncomingImports(TImport one) {
244
        this.getIncomingImports().add(one);
×
245
    }   
×
246
    
247
    public void addIncomingImports(TImport one, TImport... many) {
248
        this.getIncomingImports().add(one);
×
249
        for (TImport each : many)
×
250
            this.getIncomingImports().add(each);
×
251
    }   
×
252
    
253
    public void addIncomingImports(Iterable<? extends TImport> many) {
254
        for (TImport each : many)
×
255
            this.getIncomingImports().add(each);
×
256
    }   
×
257
                
258
    public void addIncomingImports(TImport[] many) {
259
        for (TImport each : many)
×
260
            this.getIncomingImports().add(each);
×
261
    }
×
262
    
263
    public int numberOfIncomingImports() {
264
        return getIncomingImports().size();
×
265
    }
266

267
    public boolean hasIncomingImports() {
268
        return !getIncomingImports().isEmpty();
×
269
    }
270

271
    @FameProperty(name = "isDead", derived = true)
272
    public Boolean getIsDead() {
273
        // TODO: this is a derived property, implement this method manually.
274
        throw new UnsupportedOperationException("Not yet implemented!");  
×
275
    }
276
    
277
    @FameProperty(name = "isRoot", derived = true)
278
    public Boolean getIsRoot() {
279
        // TODO: this is a derived property, implement this method manually.
280
        throw new UnsupportedOperationException("Not yet implemented!");  
×
281
    }
282
    
283
    @FameProperty(name = "isStub")
284
    public Boolean getIsStub() {
285
        return isStub;
3✔
286
    }
287

288
    public void setIsStub(Boolean isStub) {
289
        this.isStub = isStub;
3✔
290
    }
1✔
291
    
292
    @FameProperty(name = "name")
293
    public String getName() {
294
        return name;
3✔
295
    }
296

297
    public void setName(String name) {
298
        this.name = name;
3✔
299
    }
1✔
300

301
    @FameProperty(name = "numberOfContainedEntities", derived = true)
302
    public Number getNumberOfContainedEntities() {
303
        // TODO: this is a derived property, implement this method manually.
NEW
304
        throw new UnsupportedOperationException("Not yet implemented!");
×
305
    }
306
    
307
    @FameProperty(name = "numberOfComments", derived = true)
308
    public Number getNumberOfComments() {
309
        // TODO: this is a derived property, implement this method manually.
310
        throw new UnsupportedOperationException("Not yet implemented!");  
×
311
    }
312
    
313
    @FameProperty(name = "numberOfDeadChildren", derived = true)
314
    public Number getNumberOfDeadChildren() {
315
        // TODO: this is a derived property, implement this method manually.
316
        throw new UnsupportedOperationException("Not yet implemented!");  
×
317
    }
318
    
319
    @FameProperty(name = "numberOfExternalClients", derived = true)
320
    public Number getNumberOfExternalClients() {
321
        // TODO: this is a derived property, implement this method manually.
322
        throw new UnsupportedOperationException("Not yet implemented!");  
×
323
    }
324
    
325
    @FameProperty(name = "numberOfExternalProviders", derived = true)
326
    public Number getNumberOfExternalProviders() {
327
        // TODO: this is a derived property, implement this method manually.
328
        throw new UnsupportedOperationException("Not yet implemented!");  
×
329
    }
330
    
331
    @FameProperty(name = "numberOfInternalClients", derived = true)
332
    public Number getNumberOfInternalClients() {
333
        // TODO: this is a derived property, implement this method manually.
334
        throw new UnsupportedOperationException("Not yet implemented!");  
×
335
    }
336
    
337
    @FameProperty(name = "numberOfInternalProviders", derived = true)
338
    public Number getNumberOfInternalProviders() {
339
        // TODO: this is a derived property, implement this method manually.
340
        throw new UnsupportedOperationException("Not yet implemented!");  
×
341
    }
342
    
343
    @FameProperty(name = "numberOfLinesOfCode")
344
    public Number getNumberOfLinesOfCode() {
345
        return numberOfLinesOfCode;
3✔
346
    }
347

348
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
349
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
350
    }
×
351
    
352
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
353
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
354
        // TODO: this is a derived property, implement this method manually.
355
        throw new UnsupportedOperationException("Not yet implemented!");  
×
356
    }
357
    
358
    @FameProperty(name = "parentPackage", opposite = "childEntities", container = true)
359
    public TPackage getParentPackage() {
360
        return parentPackage;
3✔
361
    }
362

363
    public void setParentPackage(TPackage parentPackage) {
364
        if (this.parentPackage != null) {
3✔
365
            if (this.parentPackage.equals(parentPackage)) return;
6!
366
            this.parentPackage.getChildEntities().remove(this);
×
367
        }
368
        this.parentPackage = parentPackage;
3✔
369
        if (parentPackage == null) return;
2!
370
        parentPackage.getChildEntities().add(this);
5✔
371
    }
1✔
372
    
373
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
374
    public TSourceAnchor getSourceAnchor() {
375
        return sourceAnchor;
3✔
376
    }
377

378
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
379
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
×
380
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
×
381
            this.sourceAnchor = sourceAnchor;
×
382
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
×
383
            if (sourceAnchor != null) sourceAnchor.setElement(this);
×
384
        }
385
    }
×
386
    
387
    @FameProperty(name = "sourceText", derived = true)
388
    public String getSourceText() {
389
        // TODO: this is a derived property, implement this method manually.
390
        throw new UnsupportedOperationException("Not yet implemented!");  
×
391
    }
392
    
393
    @FameProperty(name = "weightedMethodCount", derived = true)
394
    public Number getWeightedMethodCount() {
395
        // TODO: this is a derived property, implement this method manually.
396
        throw new UnsupportedOperationException("Not yet implemented!");  
×
397
    }
398
    
399

400

401
}
402

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc