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

moosetechnology / VerveineJ / 23789280827

31 Mar 2026 09:02AM UTC coverage: 52.137% (+0.2%) from 51.947%
23789280827

Pull #208

github

web-flow
Merge b22239990 into 6d6ebf0a8
Pull Request #208: Exception comments

1974 of 3974 branches covered (49.67%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

289 existing lines in 4 files now uncovered.

4394 of 8240 relevant lines covered (53.33%)

2.16 hits per line

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

20.25
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/PrimitiveType.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

10
import org.moosetechnology.model.famix.famixjavaentities.Class;
11
import org.moosetechnology.model.famix.famixtraits.TConcretization;
12
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
13
import org.moosetechnology.model.famix.famixtraits.TPrimitiveType;
14
import org.moosetechnology.model.famix.famixtraits.TReference;
15
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
16
import org.moosetechnology.model.famix.famixtraits.TTypeArgument;
17
import org.moosetechnology.model.famix.famixtraits.TWithTypes;
18
import org.moosetechnology.model.famix.famixreplication.Replica;
19
import org.moosetechnology.model.famix.famixtraits.TConcretization;
20
import org.moosetechnology.model.famix.famixtraits.TTypeArgument;
21

22

23
@FamePackage("Famix-Java-Entities")
24
@FameDescription("PrimitiveType")
25
public class PrimitiveType extends Type implements TPrimitiveType, TTypeArgument {
3✔
26

27
    private Collection<TReference> incomingReferences;
28

29
    private Collection<TEntityTyping> incomingTypings;
30

31
    private Boolean isStub;
32

33
    private String name;
34

35
    private Number numberOfLinesOfCode;
36

37
    private Collection<TConcretization> outgoingConcretizations;
38

39
    private TSourceAnchor sourceAnchor;
40

41
    private TWithTypes typeContainer;
42

43

44

45
    @FameProperty(name = "containsReplicas", derived = true)
46
    public Boolean getContainsReplicas() {
47
        // TODO: this is a derived property, implement this method manually.
UNCOV
48
        throw new UnsupportedOperationException("Not yet implemented!");
×
49
    }
50

51
    @FameProperty(name = "duplicationRate", derived = true)
52
    public Number getDuplicationRate() {
53
        // TODO: this is a derived property, implement this method manually.
UNCOV
54
        throw new UnsupportedOperationException("Not yet implemented!");
×
55
    }
56

57
    @FameProperty(name = "fanIn", derived = true)
58
    public Number getFanIn() {
59
        // TODO: this is a derived property, implement this method manually.
UNCOV
60
        throw new UnsupportedOperationException("Not yet implemented!");
×
61
    }
62

63
    @FameProperty(name = "fanOut", derived = true)
64
    public Number getFanOut() {
65
        // TODO: this is a derived property, implement this method manually.
UNCOV
66
        throw new UnsupportedOperationException("Not yet implemented!");
×
67
    }
68

69
    @FameProperty(name = "incomingReferences", opposite = "referredEntity", derived = true)
70
    public Collection<TReference> getIncomingReferences() {
71
        if (incomingReferences == null) {
3✔
72
            incomingReferences = new MultivalueSet<TReference>() {
12✔
73
                @Override
74
                protected void clearOpposite(TReference e) {
UNCOV
75
                    e.setReferredEntity(null);
×
UNCOV
76
                }
×
77
                @Override
78
                protected void setOpposite(TReference e) {
79
                    e.setReferredEntity(PrimitiveType.this);
4✔
80
                }
1✔
81
            };
82
        }
83
        return incomingReferences;
3✔
84
    }
85

86
    public void setIncomingReferences(Collection<? extends TReference> incomingReferences) {
UNCOV
87
        this.getIncomingReferences().clear();
×
UNCOV
88
        this.getIncomingReferences().addAll(incomingReferences);
×
89
    }
×
90

91

92
    public void addIncomingReferences(TReference one) {
93
        this.getIncomingReferences().add(one);
×
94
    }
×
95

96
    public void addIncomingReferences(TReference one, TReference... many) {
UNCOV
97
        this.getIncomingReferences().add(one);
×
UNCOV
98
        for (TReference each : many)
×
99
            this.getIncomingReferences().add(each);
×
100
    }
×
101

102
    public void addIncomingReferences(Iterable<? extends TReference> many) {
UNCOV
103
        for (TReference each : many)
×
104
            this.getIncomingReferences().add(each);
×
105
    }
×
106

107
    public void addIncomingReferences(TReference[] many) {
UNCOV
108
        for (TReference each : many)
×
109
            this.getIncomingReferences().add(each);
×
UNCOV
110
    }
×
111

112
    public int numberOfIncomingReferences() {
113
        return getIncomingReferences().size();
×
114
    }
115

116
    public boolean hasIncomingReferences() {
UNCOV
117
        return !getIncomingReferences().isEmpty();
×
118
    }
119

120
    @FameProperty(name = "incomingTypings", opposite = "declaredType", derived = true)
121
    public Collection<TEntityTyping> getIncomingTypings() {
122
        if (incomingTypings == null) {
3✔
123
            incomingTypings = new MultivalueSet<TEntityTyping>() {
12✔
124
                @Override
125
                protected void clearOpposite(TEntityTyping e) {
UNCOV
126
                    e.setDeclaredType(null);
×
UNCOV
127
                }
×
128
                @Override
129
                protected void setOpposite(TEntityTyping e) {
130
                    e.setDeclaredType(PrimitiveType.this);
4✔
131
                }
1✔
132
            };
133
        }
134
        return incomingTypings;
3✔
135
    }
136

137
    public void setIncomingTypings(Collection<? extends TEntityTyping> incomingTypings) {
UNCOV
138
        this.getIncomingTypings().clear();
×
UNCOV
139
        this.getIncomingTypings().addAll(incomingTypings);
×
140
    }
×
141

142

143
    public void addIncomingTypings(TEntityTyping one) {
144
        this.getIncomingTypings().add(one);
×
145
    }
×
146

147
    public void addIncomingTypings(TEntityTyping one, TEntityTyping... many) {
UNCOV
148
        this.getIncomingTypings().add(one);
×
UNCOV
149
        for (TEntityTyping each : many)
×
150
            this.getIncomingTypings().add(each);
×
151
    }
×
152

153
    public void addIncomingTypings(Iterable<? extends TEntityTyping> many) {
UNCOV
154
        for (TEntityTyping each : many)
×
155
            this.getIncomingTypings().add(each);
×
156
    }
×
157

158
    public void addIncomingTypings(TEntityTyping[] many) {
UNCOV
159
        for (TEntityTyping each : many)
×
160
            this.getIncomingTypings().add(each);
×
UNCOV
161
    }
×
162

163
    public int numberOfIncomingTypings() {
164
        return getIncomingTypings().size();
×
165
    }
166

167
    public boolean hasIncomingTypings() {
UNCOV
168
        return !getIncomingTypings().isEmpty();
×
169
    }
170

171
    @FameProperty(name = "isDead", derived = true)
172
    public Boolean getIsDead() {
173
        // TODO: this is a derived property, implement this method manually.
UNCOV
174
        throw new UnsupportedOperationException("Not yet implemented!");
×
175
    }
176

177
    @FameProperty(name = "isRoot", derived = true)
178
    public Boolean getIsRoot() {
179
        // TODO: this is a derived property, implement this method manually.
UNCOV
180
        throw new UnsupportedOperationException("Not yet implemented!");
×
181
    }
182

183
    @FameProperty(name = "isStub")
184
    public Boolean getIsStub() {
185
        return isStub;
3✔
186
    }
187

188
    public void setIsStub(Boolean isStub) {
189
        this.isStub = isStub;
3✔
190
    }
1✔
191

192
    @FameProperty(name = "name")
193
    public String getName() {
194
        return name;
3✔
195
    }
196

197
    public void setName(String name) {
198
        this.name = name;
3✔
199
    }
1✔
200

201
    @FameProperty(name = "numberOfContainedEntities", derived = true)
202
    public Number getNumberOfContainedEntities() {
203
        // TODO: this is a derived property, implement this method manually.
UNCOV
204
        throw new UnsupportedOperationException("Not yet implemented!");
×
205
    }
206

207
    @FameProperty(name = "numberOfDeadChildren", derived = true)
208
    public Number getNumberOfDeadChildren() {
209
        // TODO: this is a derived property, implement this method manually.
UNCOV
210
        throw new UnsupportedOperationException("Not yet implemented!");
×
211
    }
212

213
    @FameProperty(name = "numberOfExternalClients", derived = true)
214
    public Number getNumberOfExternalClients() {
215
        // TODO: this is a derived property, implement this method manually.
UNCOV
216
        throw new UnsupportedOperationException("Not yet implemented!");
×
217
    }
218

219
    @FameProperty(name = "numberOfExternalProviders", derived = true)
220
    public Number getNumberOfExternalProviders() {
221
        // TODO: this is a derived property, implement this method manually.
UNCOV
222
        throw new UnsupportedOperationException("Not yet implemented!");
×
223
    }
224

225
    @FameProperty(name = "numberOfInternalClients", derived = true)
226
    public Number getNumberOfInternalClients() {
227
        // TODO: this is a derived property, implement this method manually.
UNCOV
228
        throw new UnsupportedOperationException("Not yet implemented!");
×
229
    }
230

231
    @FameProperty(name = "numberOfInternalProviders", derived = true)
232
    public Number getNumberOfInternalProviders() {
233
        // TODO: this is a derived property, implement this method manually.
UNCOV
234
        throw new UnsupportedOperationException("Not yet implemented!");
×
235
    }
236

237
    @FameProperty(name = "numberOfLinesOfCode")
238
    public Number getNumberOfLinesOfCode() {
239
        return numberOfLinesOfCode;
3✔
240
    }
241

242
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
UNCOV
243
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
UNCOV
244
    }
×
245

246
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
247
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
248
        // TODO: this is a derived property, implement this method manually.
UNCOV
249
        throw new UnsupportedOperationException("Not yet implemented!");
×
250
    }
251

252
    @FameProperty(name = "outgoingConcretizations", opposite = "typeArgument", derived = true)
253
    public Collection<TConcretization> getOutgoingConcretizations() {
254
        if (outgoingConcretizations == null) {
3✔
255
            outgoingConcretizations = new MultivalueSet<TConcretization>() {
12✔
256
                @Override
257
                protected void clearOpposite(TConcretization e) {
258
                    e.setTypeArgument(null);
×
259
                }
×
260
                @Override
261
                protected void setOpposite(TConcretization e) {
262
                    e.setTypeArgument(PrimitiveType.this);
4✔
263
                }
1✔
264
            };
265
        }
266
        return outgoingConcretizations;
3✔
267
    }
268

269
    public void setOutgoingConcretizations(Collection<? extends TConcretization> outgoingConcretizations) {
UNCOV
270
        this.getOutgoingConcretizations().clear();
×
UNCOV
271
        this.getOutgoingConcretizations().addAll(outgoingConcretizations);
×
272
    }
×
273

274

275
    public void addOutgoingConcretizations(TConcretization one) {
276
        this.getOutgoingConcretizations().add(one);
×
277
    }
×
278

279
    public void addOutgoingConcretizations(TConcretization one, TConcretization... many) {
UNCOV
280
        this.getOutgoingConcretizations().add(one);
×
UNCOV
281
        for (TConcretization each : many)
×
282
            this.getOutgoingConcretizations().add(each);
×
283
    }
×
284

285
    public void addOutgoingConcretizations(Iterable<? extends TConcretization> many) {
UNCOV
286
        for (TConcretization each : many)
×
287
            this.getOutgoingConcretizations().add(each);
×
288
    }
×
289

290
    public void addOutgoingConcretizations(TConcretization[] many) {
UNCOV
291
        for (TConcretization each : many)
×
292
            this.getOutgoingConcretizations().add(each);
×
UNCOV
293
    }
×
294

295
    public int numberOfOutgoingConcretizations() {
296
        return getOutgoingConcretizations().size();
×
297
    }
298

299
    public boolean hasOutgoingConcretizations() {
UNCOV
300
        return !getOutgoingConcretizations().isEmpty();
×
301
    }
302

303
    @FameProperty(name = "replicas", derived = true)
304
    public Replica getReplicas() {
305
        // TODO: this is a derived property, implement this method manually.
306
        throw new UnsupportedOperationException("Not yet implemented!");
5✔
307
    }
308

309
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
310
    public TSourceAnchor getSourceAnchor() {
311
        return sourceAnchor;
3✔
312
    }
313

314
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
315
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
×
UNCOV
316
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
×
317
            this.sourceAnchor = sourceAnchor;
×
UNCOV
318
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
×
UNCOV
319
            if (sourceAnchor != null) sourceAnchor.setElement(this);
×
320
        }
UNCOV
321
    }
×
322

323
    @FameProperty(name = "sourceText", derived = true)
324
    public String getSourceText() {
325
        // TODO: this is a derived property, implement this method manually.
UNCOV
326
        throw new UnsupportedOperationException("Not yet implemented!");
×
327
    }
328

329
    @FameProperty(name = "typeContainer", opposite = "types", container = true)
330
    public TWithTypes getTypeContainer() {
331
        return typeContainer;
3✔
332
    }
333

334
    public void setTypeContainer(TWithTypes typeContainer) {
335
        if (this.typeContainer != null) {
×
336
            if (this.typeContainer.equals(typeContainer)) return;
×
337
            this.typeContainer.getTypes().remove(this);
×
338
        }
UNCOV
339
        this.typeContainer = typeContainer;
×
UNCOV
340
        if (typeContainer == null) return;
×
UNCOV
341
        typeContainer.getTypes().add(this);
×
UNCOV
342
    }
×
343

344
}
345

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