Skip to content

Commit 9dab59f

Browse files
Fix expected POCO classes (missing ID)
1 parent 9458d28 commit 9dab59f

32 files changed

+1286
-2610
lines changed

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/AnnotatingElement.cs

Lines changed: 29 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,26 @@ namespace SysML2.NET.Core.POCO.Root.Annotations
4141
[GeneratedCode("SysML2.NET", "latest")]
4242
public partial class AnnotatingElement : IAnnotatingElement
4343
{
44+
/// <summary>
45+
/// Gets or sets the unique identifier
46+
/// </summary>
47+
[Property(xmiId: "sysml2.net", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
48+
[Implements(implementation: "IData.Id")]
49+
public Guid Id { get; set; }
50+
4451
/// <summary>
4552
/// Various alternative identifiers for this Element. Generally, these will be set by tools.
4653
/// </summary>
4754
[Property(xmiId: "_19_0_2_12e503d9_1594312532679_496267_4310", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
48-
public
49-
List<string> AliasIds
50-
{ get; set; }
55+
public List<string> AliasIds { get; set; }
5156

5257
/// <summary>
5358
/// The Elements that are annotated by this AnnotatingElement. If annotation is not empty, these are the
5459
/// annotatedElements of the annotations. If annotation is empty, then it is the owningNamespace of the
5560
/// AnnotatingElement.
5661
/// </summary>
5762
[Property(xmiId: "_19_0_2_12e503d9_1594145755058_99428_86", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
58-
public
59-
List<IElement> QueryAnnotatedElement()
63+
public List<IElement> QueryAnnotatedElement()
6064
{
6165
throw new NotImplementedException("Derived property AnnotatedElement not yet supported");
6266
}
@@ -67,8 +71,7 @@ List<IElement> QueryAnnotatedElement()
6771
/// </summary>
6872
[Property(xmiId: "_18_5_3_12e503d9_1543094212714_953084_18407", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
6973
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")]
70-
public
71-
List<IAnnotation> QueryAnnotation()
74+
public List<IAnnotation> QueryAnnotation()
7275
{
7376
throw new NotImplementedException("Derived property Annotation not yet supported");
7477
}
@@ -77,9 +80,7 @@ List<IAnnotation> QueryAnnotation()
7780
/// The declared name of this Element.
7881
/// </summary>
7982
[Property(xmiId: "_18_5_3_12e503d9_1533160674987_737648_43307", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
80-
public
81-
string DeclaredName
82-
{ get; set; }
83+
public string DeclaredName { get; set; }
8384

8485
/// <summary>
8586
/// An optional alternative name for the Element that is intended to be shorter or in some way more
@@ -88,18 +89,15 @@ string DeclaredName
8889
/// model or relative to some other context.
8990
/// </summary>
9091
[Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
91-
public
92-
string DeclaredShortName
93-
{ get; set; }
92+
public string DeclaredShortName { get; set; }
9493

9594
/// <summary>
9695
/// The Documentation owned by this Element.
9796
/// </summary>
9897
[Property(xmiId: "_19_0_2_12e503d9_1594150061166_345630_1621", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
9998
[SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")]
10099
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")]
101-
public
102-
List<IDocumentation> QueryDocumentation()
100+
public List<IDocumentation> QueryDocumentation()
103101
{
104102
throw new NotImplementedException("Derived property Documentation not yet supported");
105103
}
@@ -109,9 +107,7 @@ List<IDocumentation> QueryDocumentation()
109107
/// not change during the lifetime of the Element.
110108
/// </summary>
111109
[Property(xmiId: "_18_5_3_12e503d9_1533160674986_844338_43305", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
112-
public
113-
string ElementId
114-
{ get; set; }
110+
public string ElementId { get; set; }
115111

116112
/// <summary>
117113
/// Whether all necessary implied Relationships have been included in the ownedRelationships of this
@@ -121,16 +117,13 @@ string ElementId
121117
/// all required implied Relationships must be included, or none of them.
122118
/// </summary>
123119
[Property(xmiId: "_19_0_4_12e503d9_1662070949317_79713_3658", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")]
124-
public
125-
bool IsImpliedIncluded
126-
{ get; set; }
120+
public bool IsImpliedIncluded { get; set; }
127121

128122
/// <summary>
129123
/// Whether this Element is contained in the ownership tree of a library model.
130124
/// </summary>
131125
[Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
132-
public
133-
bool QueryIsLibraryElement()
126+
public bool QueryIsLibraryElement()
134127
{
135128
throw new NotImplementedException("Derived property IsLibraryElement not yet supported");
136129
}
@@ -142,8 +135,7 @@ bool QueryIsLibraryElement()
142135
/// null.
143136
/// </summary>
144137
[Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
145-
public
146-
string QueryName()
138+
public string QueryName()
147139
{
148140
throw new NotImplementedException("Derived property Name not yet supported");
149141
}
@@ -155,8 +147,7 @@ string QueryName()
155147
[Property(xmiId: "_19_0_4_12e503d9_1703019570915_375100_18", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
156148
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")]
157149
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")]
158-
public
159-
List<IAnnotation> QueryOwnedAnnotatingRelationship()
150+
public List<IAnnotation> QueryOwnedAnnotatingRelationship()
160151
{
161152
throw new NotImplementedException("Derived property OwnedAnnotatingRelationship not yet supported");
162153
}
@@ -168,8 +159,7 @@ List<IAnnotation> QueryOwnedAnnotatingRelationship()
168159
[Property(xmiId: "_19_0_2_12e503d9_1594152527165_702130_2500", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
169160
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")]
170161
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")]
171-
public
172-
List<IAnnotation> QueryOwnedAnnotation()
162+
public List<IAnnotation> QueryOwnedAnnotation()
173163
{
174164
throw new NotImplementedException("Derived property OwnedAnnotation not yet supported");
175165
}
@@ -179,8 +169,7 @@ List<IAnnotation> QueryOwnedAnnotation()
179169
/// this Element.
180170
/// </summary>
181171
[Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
182-
public
183-
List<IElement> QueryOwnedElement()
172+
public List<IElement> QueryOwnedElement()
184173
{
185174
throw new NotImplementedException("Derived property OwnedElement not yet supported");
186175
}
@@ -190,17 +179,14 @@ List<IElement> QueryOwnedElement()
190179
/// </summary>
191180
[Property(xmiId: "_18_5_3_12e503d9_1543092026091_217766_16748", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
192181
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_585972_43176")]
193-
public
194-
List<IRelationship> OwnedRelationship
195-
{ get; set; }
182+
public List<IRelationship> OwnedRelationship { get; set; }
196183

197184
/// <summary>
198185
/// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this
199186
/// Element, if any.
200187
/// </summary>
201188
[Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
202-
public
203-
IElement QueryOwner()
189+
public IElement QueryOwner()
204190
{
205191
throw new NotImplementedException("Derived property Owner not yet supported");
206192
}
@@ -211,8 +197,7 @@ IElement QueryOwner()
211197
[Property(xmiId: "_2022x_2_12e503d9_1735188506571_308678_376", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
212198
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")]
213199
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")]
214-
public
215-
IAnnotation QueryOwningAnnotatingRelationship()
200+
public IAnnotation QueryOwningAnnotatingRelationship()
216201
{
217202
throw new NotImplementedException("Derived property OwningAnnotatingRelationship not yet supported");
218203
}
@@ -223,8 +208,7 @@ IAnnotation QueryOwningAnnotatingRelationship()
223208
[Property(xmiId: "_18_5_3_12e503d9_1533160674972_622493_43236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
224209
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")]
225210
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")]
226-
public
227-
IOwningMembership QueryOwningMembership()
211+
public IOwningMembership QueryOwningMembership()
228212
{
229213
throw new NotImplementedException("Derived property OwningMembership not yet supported");
230214
}
@@ -235,8 +219,7 @@ IOwningMembership QueryOwningMembership()
235219
/// </summary>
236220
[Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
237221
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")]
238-
public
239-
INamespace QueryOwningNamespace()
222+
public INamespace QueryOwningNamespace()
240223
{
241224
throw new NotImplementedException("Derived property OwningNamespace not yet supported");
242225
}
@@ -246,9 +229,7 @@ INamespace QueryOwningNamespace()
246229
/// </summary>
247230
[Property(xmiId: "_18_5_3_12e503d9_1533160674986_482273_43303", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
248231
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_585972_43176")]
249-
public
250-
IRelationship OwningRelationship
251-
{ get; set; }
232+
public IRelationship OwningRelationship { get; set; }
252233

253234
/// <summary>
254235
/// The full ownership-qualified name of this Element, represented in a form that is valid according to
@@ -259,8 +240,7 @@ IRelationship OwningRelationship
259240
/// then the qualifiedName is null for all such Elements other than the first.
260241
/// </summary>
261242
[Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
262-
public
263-
string QueryQualifiedName()
243+
public string QueryQualifiedName()
264244
{
265245
throw new NotImplementedException("Derived property QualifiedName not yet supported");
266246
}
@@ -272,8 +252,7 @@ string QueryQualifiedName()
272252
/// when the declaredName is null.
273253
/// </summary>
274254
[Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
275-
public
276-
string QueryShortName()
255+
public string QueryShortName()
277256
{
278257
throw new NotImplementedException("Derived property ShortName not yet supported");
279258
}
@@ -284,8 +263,7 @@ string QueryShortName()
284263
[Property(xmiId: "_19_0_2_12e503d9_1594154758493_640290_3388", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
285264
[SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")]
286265
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")]
287-
public
288-
List<ITextualRepresentation> QueryTextualRepresentation()
266+
public List<ITextualRepresentation> QueryTextualRepresentation()
289267
{
290268
throw new NotImplementedException("Derived property TextualRepresentation not yet supported");
291269
}

0 commit comments

Comments
 (0)