Skip to content

Commit a7570d9

Browse files
WIP : DTO are not aligned with the JSON schema (embedding of DataIdentity/DataVersion). Waiting response about PIM questions
1 parent 1181ac4 commit a7570d9

File tree

470 files changed

+28572
-2108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

470 files changed

+28572
-2108
lines changed

SysML2.NET.CodeGenerator.Tests/Expected/Ecore/Core/ExpectedClasses.cs renamed to SysML2.NET.CodeGenerator.Tests/Expected/ExpectedClasses.cs

Lines changed: 78 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
// </copyright>
1919
// ------------------------------------------------------------------------------------------------
2020

21-
namespace SysML2.NET.CodeGenerator.Tests.Expected.Ecore.Core
21+
namespace SysML2.NET.CodeGenerator.Tests.Expected
2222
{
2323
using System.Collections;
2424
using System.Collections.Generic;
2525

2626
/// <summary>
27-
/// provides a list of the expected Concrete classes
27+
/// provides a list of the expected Concrete classes for the Core metamodel
2828
/// </summary>
29-
public class ExpectedConcreteClasses : IEnumerable<string>
29+
public class ExpectedConcreteClassesForCore : IEnumerable<string>
3030
{
3131
/// <summary>
3232
/// returns the list of class names
@@ -70,9 +70,9 @@ IEnumerator IEnumerable.GetEnumerator()
7070
}
7171

7272
/// <summary>
73-
/// provides a list of the all expected Abstract and Concrete classes
73+
/// provides a list of the all expected Abstract and Concrete classes for the Core metamodel
7474
/// </summary>
75-
public class ExpectedAllClasses : IEnumerable<string>
75+
public class ExpectedAllClassesForCore : IEnumerable<string>
7676
{
7777
/// <summary>
7878
/// returns the list of class names
@@ -116,4 +116,77 @@ IEnumerator IEnumerable.GetEnumerator()
116116
return this.GetEnumerator();
117117
}
118118
}
119+
120+
/// <summary>
121+
/// provides a list of the all expected Concrete classes for the PIM metamodel
122+
/// </summary>
123+
public class ExpectedConcreteClassesForPim : IEnumerable<string>
124+
{
125+
/// <summary>
126+
/// returns the list of class names
127+
/// </summary>
128+
/// <returns>
129+
/// list of class names
130+
/// </returns>
131+
public IEnumerator<string> GetEnumerator()
132+
{
133+
yield return "Branch";
134+
yield return "Commit";
135+
yield return "CompositeConstraint";
136+
yield return "DataDifference";
137+
yield return "DataVersion";
138+
yield return "ExternalData";
139+
yield return "ExternalRelationship";
140+
yield return "PrimitiveConstraint";
141+
yield return "Project";
142+
}
143+
144+
/// <summary>
145+
/// returns the list of class names
146+
/// </summary>
147+
/// <returns>
148+
/// list of class names
149+
/// </returns>
150+
IEnumerator IEnumerable.GetEnumerator()
151+
{
152+
return this.GetEnumerator();
153+
}
154+
}
155+
156+
/// <summary>
157+
/// provides a list of the all expected Abstract and Concrete classes for the PIM metamodel
158+
/// </summary>
159+
public class ExpectedAllClassesForPim : IEnumerable<string>
160+
{
161+
/// <summary>
162+
/// returns the list of class names
163+
/// </summary>
164+
/// <returns>
165+
/// list of class names
166+
/// </returns>
167+
public IEnumerator<string> GetEnumerator()
168+
{
169+
yield return "Branch";
170+
yield return "Commit";
171+
yield return "CompositeConstraint";
172+
yield return "DataDifference";
173+
yield return "DataVersion";
174+
yield return "ExternalData";
175+
yield return "ExternalRelationship";
176+
yield return "PrimitiveConstraint";
177+
yield return "Project";
178+
yield return "Record";
179+
}
180+
181+
/// <summary>
182+
/// returns the list of class names
183+
/// </summary>
184+
/// <returns>
185+
/// list of class names
186+
/// </returns>
187+
IEnumerator IEnumerable.GetEnumerator()
188+
{
189+
return this.GetEnumerator();
190+
}
191+
}
119192
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="AnnotatingElement.cs" company="Starion Group S.A.">
33
//
4-
// Copyright (C) 2022-2025 Starion Group S.A.
4+
// Copyright (C) 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Association.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="Association.cs" company="Starion Group S.A.">
33
//
4-
// Copyright (C) 2022-2025 Starion Group S.A.
4+
// Copyright (C) 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Dependency.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="Dependency.cs" company="Starion Group S.A.">
33
//
4-
// Copyright (C) 2022-2025 Starion Group S.A.
4+
// Copyright (C) 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/EnumerationDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="EnumerationDefinition.cs" company="Starion Group S.A.">
33
//
4-
// Copyright (C) 2022-2025 Starion Group S.A.
4+
// Copyright (C) 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Feature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="Feature.cs" company="Starion Group S.A.">
33
//
4-
// Copyright (C) 2022-2025 Starion Group S.A.
4+
// Copyright (C) 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FeatureTyping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="FeatureTyping.cs" company="Starion Group S.A.">
33
//
4-
// Copyright (C) 2022-2025 Starion Group S.A.
4+
// Copyright (C) 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/Flow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="Flow.cs" company="Starion Group S.A.">
33
//
4-
// Copyright (C) 2022-2025 Starion Group S.A.
4+
// Copyright (C) 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/FramedConcernMembership.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="FramedConcernMembership.cs" company="Starion Group S.A.">
33
//
4-
// Copyright (C) 2022-2025 Starion Group S.A.
4+
// Copyright (C) 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDto/IAnnotatingElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -------------------------------------------------------------------------------------------------
22
// <copyright file="IAnnotatingElement.cs" company="Starion Group S.A.">
33
//
4-
// Copyright (C) 2022-2025 Starion Group S.A.
4+
// Copyright (C) 2022-2026 Starion Group S.A.
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)