• 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

53.25
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Attribute.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.TAccess;
10
import org.moosetechnology.model.famix.famixtraits.TAttribute;
11
import org.moosetechnology.model.famix.famixtraits.TCanBeClassSide;
12
import org.moosetechnology.model.famix.famixtraits.TCanBeFinal;
13
import org.moosetechnology.model.famix.famixtraits.TComment;
14
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
15
import org.moosetechnology.model.famix.famixtraits.THasVisibility;
16
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
17
import org.moosetechnology.model.famix.famixtraits.TType;
18
import org.moosetechnology.model.famix.famixtraits.TWithAccesses;
19
import org.moosetechnology.model.famix.famixtraits.TWithAttributes;
20
import org.moosetechnology.model.famix.famixtraits.TWithComments;
21

22

23
@FamePackage("Famix-Java-Entities")
24
@FameDescription("Attribute")
25
public class Attribute extends Variable implements TAttribute, TCanBeClassSide, TCanBeFinal, TCanBeTransient, TCanBeVolatile, THasVisibility, TWithComments {
3✔
26

27
    private Collection<TComment> comments; 
28

29
    private Collection<TAccess> incomingAccesses; 
30

31
    private Boolean isClassSide;
32
    
33
    private Boolean isFinal;
34
    
35
    private Boolean isStub;
36
    
37
    private Boolean isTransient;
38
    
39
    private Boolean isVolatile;
40
    
41
    private String name;
42
    
43
    private Number numberOfLinesOfCode;
44
    
45
    private TWithAttributes parentType;
46
    
47
    private TSourceAnchor sourceAnchor;
48
    
49
    private TEntityTyping typing;
50
    
51
    private String visibility;
52
    
53

54

55
    @FameProperty(name = "accessors", derived = true)
56
    public Collection<TWithAccesses> getAccessors() {
57
        // TODO: this is a derived property, implement this method manually.
58
        throw new UnsupportedOperationException("Not yet implemented!");  
5✔
59
    }
60
        
61
    @FameProperty(name = "comments", opposite = "commentedEntity", derived = true)
62
    public Collection<TComment> getComments() {
63
        if (comments == null) {
3✔
64
            comments = new MultivalueSet<TComment>() {
12✔
65
                @Override
66
                protected void clearOpposite(TComment e) {
67
                    e.setCommentedEntity(null);
×
68
                }
×
69
                @Override
70
                protected void setOpposite(TComment e) {
71
                    e.setCommentedEntity(Attribute.this);
4✔
72
                }
1✔
73
            };
74
        }
75
        return comments;
3✔
76
    }
77
    
78
    public void setComments(Collection<? extends TComment> comments) {
79
        this.getComments().clear();
×
80
        this.getComments().addAll(comments);
×
81
    }                    
×
82
    
83
        
84
    public void addComments(TComment one) {
85
        this.getComments().add(one);
×
86
    }   
×
87
    
88
    public void addComments(TComment one, TComment... many) {
89
        this.getComments().add(one);
×
90
        for (TComment each : many)
×
91
            this.getComments().add(each);
×
92
    }   
×
93
    
94
    public void addComments(Iterable<? extends TComment> many) {
95
        for (TComment each : many)
×
96
            this.getComments().add(each);
×
97
    }   
×
98
                
99
    public void addComments(TComment[] many) {
100
        for (TComment each : many)
×
101
            this.getComments().add(each);
×
102
    }
×
103
    
104
    public int numberOfComments() {
105
        return getComments().size();
×
106
    }
107

108
    public boolean hasComments() {
109
        return !getComments().isEmpty();
×
110
    }
111

112
    @FameProperty(name = "fanIn", derived = true)
113
    public Number getFanIn() {
114
        // TODO: this is a derived property, implement this method manually.
115
        throw new UnsupportedOperationException("Not yet implemented!");  
×
116
    }
117
    
118
    @FameProperty(name = "fanOut", derived = true)
119
    public Number getFanOut() {
120
        // TODO: this is a derived property, implement this method manually.
121
        throw new UnsupportedOperationException("Not yet implemented!");  
×
122
    }
123
    
124
    @FameProperty(name = "hasComments", derived = true)
125
    public Boolean getHasComments() {
126
        // TODO: this is a derived property, implement this method manually.
127
        throw new UnsupportedOperationException("Not yet implemented!");  
×
128
    }
129
    
130
    @FameProperty(name = "hierarchyNestingLevel", derived = true)
131
    public Number getHierarchyNestingLevel() {
132
        // TODO: this is a derived property, implement this method manually.
133
        throw new UnsupportedOperationException("Not yet implemented!");  
×
134
    }
135

136
    @FameProperty(name = "incomingAccesses", opposite = "candidates")
137
    public Collection<TAccess> getIncomingAccesses() {
138
        if (incomingAccesses == null) {
3✔
139
            incomingAccesses = new MultivalueSet<TAccess>() {
12✔
140
                @Override
141
                protected void clearOpposite(TAccess e) {
142
                    e.getCandidates().remove(Attribute.this);
×
143
                }
×
144
                @Override
145
                protected void setOpposite(TAccess e) {
146
                    e.getCandidates().add(Attribute.this);
6✔
147
                }
1✔
148
            };
149
        }
150
        return incomingAccesses;
3✔
151
    }
152
    
153
    public void setIncomingAccesses(Collection<? extends TAccess> incomingAccesses) {
154
        this.getIncomingAccesses().clear();
3✔
155
        this.getIncomingAccesses().addAll(incomingAccesses);
5✔
156
    }                    
1✔
157
    
158
        
159
    public void addIncomingAccesses(TAccess one) {
160
        this.getIncomingAccesses().add(one);
×
161
    }   
×
162
    
163
    public void addIncomingAccesses(TAccess one, TAccess... many) {
164
        this.getIncomingAccesses().add(one);
×
165
        for (TAccess each : many)
×
166
            this.getIncomingAccesses().add(each);
×
167
    }   
×
168
    
169
    public void addIncomingAccesses(Iterable<? extends TAccess> many) {
170
        for (TAccess each : many)
×
171
            this.getIncomingAccesses().add(each);
×
172
    }   
×
173
                
174
    public void addIncomingAccesses(TAccess[] many) {
175
        for (TAccess each : many)
×
176
            this.getIncomingAccesses().add(each);
×
177
    }
×
178
    
179
    public int numberOfIncomingAccesses() {
180
        return getIncomingAccesses().size();
×
181
    }
182

183
    public boolean hasIncomingAccesses() {
184
        return !getIncomingAccesses().isEmpty();
×
185
    }
186

187
    @FameProperty(name = "isClassSide")
188
    public Boolean getIsClassSide() {
189
        return isClassSide;
3✔
190
    }
191

192
    public void setIsClassSide(Boolean isClassSide) {
193
        this.isClassSide = isClassSide;
3✔
194
    }
1✔
195
    
196
    @FameProperty(name = "isDead", derived = true)
197
    public Boolean getIsDead() {
198
        // TODO: this is a derived property, implement this method manually.
199
        throw new UnsupportedOperationException("Not yet implemented!");  
×
200
    }
201
    
202
    @FameProperty(name = "isFinal")
203
    public Boolean getIsFinal() {
204
        return isFinal;
3✔
205
    }
206

207
    public void setIsFinal(Boolean isFinal) {
208
        this.isFinal = isFinal;
3✔
209
    }
1✔
210
    
211
    @FameProperty(name = "isPackageVisibility", derived = true)
212
    public Boolean getIsPackageVisibility() {
213
        return this.visibility.equals("package");
×
214
    }
215

216
    @FameProperty(name = "isPrivate", derived = true)
217
    public Boolean getIsPrivate() {
218
        return this.visibility.equals("private");
6✔
219
    }
220

221
    @FameProperty(name = "isProtected", derived = true)
222
    public Boolean getIsProtected() {
223
        return this.visibility.equals("protected");
6✔
224
    }
225

226
    @FameProperty(name = "isPublic", derived = true)
227
    public Boolean getIsPublic() {
228
        return this.visibility.equals("public");
6✔
229
    }
230
    
231
    @FameProperty(name = "isRoot", derived = true)
232
    public Boolean getIsRoot() {
233
        // TODO: this is a derived property, implement this method manually.
234
        throw new UnsupportedOperationException("Not yet implemented!");  
×
235
    }
236
    
237
    @FameProperty(name = "isStub")
238
    public Boolean getIsStub() {
239
        return isStub;
3✔
240
    }
241

242
    public void setIsStub(Boolean isStub) {
243
        this.isStub = isStub;
3✔
244
    }
1✔
245
    
246
    @FameProperty(name = "isTransient")
247
    public Boolean getIsTransient() {
248
        return isTransient;
3✔
249
    }
250

251
    public void setIsTransient(Boolean isTransient) {
252
        this.isTransient = isTransient;
3✔
253
    }
1✔
254
    
255
    @FameProperty(name = "isVolatile")
256
    public Boolean getIsVolatile() {
257
        return isVolatile;
3✔
258
    }
259

260
    public void setIsVolatile(Boolean isVolatile) {
261
        this.isVolatile = isVolatile;
3✔
262
    }
1✔
263
    
264
    @FameProperty(name = "name")
265
    public String getName() {
266
        return name;
3✔
267
    }
268

269
    public void setName(String name) {
270
        this.name = name;
3✔
271
    }
1✔
272
    
273
    @FameProperty(name = "numberOfAccesses", derived = true)
274
    public Number getNumberOfAccesses() {
275
        // TODO: this is a derived property, implement this method manually.
276
        throw new UnsupportedOperationException("Not yet implemented!");  
×
277
    }
278
    
279
    @FameProperty(name = "numberOfAccessingClasses", derived = true)
280
    public Number getNumberOfAccessingClasses() {
281
        // TODO: this is a derived property, implement this method manually.
282
        throw new UnsupportedOperationException("Not yet implemented!");  
×
283
    }
284
    
285
    @FameProperty(name = "numberOfAccessingMethods", derived = true)
286
    public Number getNumberOfAccessingMethods() {
287
        // TODO: this is a derived property, implement this method manually.
288
        throw new UnsupportedOperationException("Not yet implemented!");  
×
289
    }
290

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

344
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
345
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
346
    }
×
347
    
348
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
349
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
350
        // TODO: this is a derived property, implement this method manually.
351
        throw new UnsupportedOperationException("Not yet implemented!");  
×
352
    }
353
    
354
    @FameProperty(name = "numberOfLocalAccesses", derived = true)
355
    public Number getNumberOfLocalAccesses() {
356
        // TODO: this is a derived property, implement this method manually.
357
        throw new UnsupportedOperationException("Not yet implemented!");  
×
358
    }
359
    
360
    @FameProperty(name = "parentType", opposite = "attributes", container = true)
361
    public TWithAttributes getParentType() {
362
        return parentType;
3✔
363
    }
364

365
    public void setParentType(TWithAttributes parentType) {
366
        if (this.parentType != null) {
3✔
367
            if (this.parentType.equals(parentType)) return;
6✔
368
            this.parentType.getAttributes().remove(this);
6✔
369
        }
370
        this.parentType = parentType;
3✔
371
        if (parentType == null) return;
3✔
372
        parentType.getAttributes().add(this);
5✔
373
    }
1✔
374
    
375
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
376
    public TSourceAnchor getSourceAnchor() {
377
        return sourceAnchor;
3✔
378
    }
379

380
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
381
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
11!
382
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
3✔
383
            this.sourceAnchor = sourceAnchor;
3✔
384
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
2!
385
            if (sourceAnchor != null) sourceAnchor.setElement(this);
5!
386
        }
387
    }
1✔
388
    
389
    @FameProperty(name = "sourceText", derived = true)
390
    public String getSourceText() {
391
        // TODO: this is a derived property, implement this method manually.
392
        throw new UnsupportedOperationException("Not yet implemented!");  
×
393
    }
394
    
395
    @FameProperty(name = "typing", opposite = "typedEntity")
396
    public TEntityTyping getTyping() {
397
        return typing;
3✔
398
    }
399

400
    public void setTyping(TEntityTyping typing) {
401
        if (this.typing == null ? typing != null : !this.typing.equals(typing)) {
11✔
402
            TEntityTyping old_typing = this.typing;
3✔
403
            this.typing = typing;
3✔
404
            if (old_typing != null) old_typing.setTypedEntity(null);
5✔
405
            if (typing != null) typing.setTypedEntity(this);
5✔
406
        }
407
    }
1✔
408

409
    public TType getDeclaredType() {
410
        return (this.typing == null) ? null : this.typing.getDeclaredType();
7!
411
    }
412
    
413
    @FameProperty(name = "visibility")
414
    public String getVisibility() {
415
        return visibility;
3✔
416
    }
417

418
    public void setVisibility(String visibility) {
419
        this.visibility = visibility;
3✔
420
    }
1✔
421
    
422

423

424
}
425

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