Skip to content

Commit b6eae99

Browse files
WIP
1 parent f8a6b62 commit b6eae99

55 files changed

Lines changed: 14557 additions & 14 deletions

Some content is hidden

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

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

Lines changed: 252 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 592 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 282 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 785 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 736 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 319 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 900 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 425 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="IAnnotatingElement.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright (C) 2022-2025 Starion Group S.A.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// </copyright>
19+
// ------------------------------------------------------------------------------------------------
20+
21+
// ------------------------------------------------------------------------------------------------
22+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
23+
// ------------------------------------------------------------------------------------------------
24+
25+
namespace SysML2.NET.Core.DTO
26+
{
27+
using System;
28+
using System.CodeDom.Compiler;
29+
using System.Collections.Generic;
30+
31+
32+
using SysML2.NET.Decorators;
33+
34+
/// <summary>
35+
/// An AnnotatingElement is an Element that provides additional description of or metadata on some other
36+
/// Element. An AnnotatingElement is either attached to its annotatedElements by Annotation
37+
/// Relationships, or it implicitly annotates its owningNamespace.
38+
/// </summary>
39+
[Class(xmiId: "_19_0_2_12e503d9_1594145576693_532940_27", isAbstract: false, isFinalSpecialization: false, isActive: false)]
40+
[GeneratedCode("SysML2.NET", "latest")]
41+
public partial interface IAnnotatingElement : IElement
42+
{
43+
/// <summary>
44+
/// The Elements that are annotated by this AnnotatingElement. If annotation is not empty, these are the
45+
/// annotatedElements of the annotations. If annotation is empty, then it is the owningNamespace of the
46+
/// AnnotatingElement.
47+
/// </summary>
48+
[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)]
49+
List<Guid> AnnotatedElement { get; }
50+
51+
/// <summary>
52+
/// The Annotations that relate this AnnotatingElement to its annotatedElements. This includes the
53+
/// owningAnnotatingRelationship (if any) followed by all the ownedAnnotatingRelationshps.
54+
/// </summary>
55+
[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)]
56+
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_80547_43227")]
57+
List<Guid> Annotation { get; }
58+
59+
/// <summary>
60+
/// The ownedRelationships of this AnnotatingElement that are Annotations, for which this
61+
/// AnnotatingElement is the annotatingElement.
62+
/// </summary>
63+
[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)]
64+
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")]
65+
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")]
66+
List<Guid> OwnedAnnotatingRelationship { get; }
67+
68+
/// <summary>
69+
/// The owningRelationship of this AnnotatingRelationship, if it is an Annotation
70+
/// </summary>
71+
[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)]
72+
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")]
73+
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094212714_953084_18407")]
74+
Guid? OwningAnnotatingRelationship { get; }
75+
76+
}
77+
}
78+
79+
// ------------------------------------------------------------------------------------------------
80+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
81+
// ------------------------------------------------------------------------------------------------
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="IAssociation.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright (C) 2022-2025 Starion Group S.A.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// </copyright>
19+
// ------------------------------------------------------------------------------------------------
20+
21+
// ------------------------------------------------------------------------------------------------
22+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
23+
// ------------------------------------------------------------------------------------------------
24+
25+
namespace SysML2.NET.Core.DTO
26+
{
27+
using System;
28+
using System.CodeDom.Compiler;
29+
using System.Collections.Generic;
30+
31+
32+
using SysML2.NET.Decorators;
33+
34+
/// <summary>
35+
/// An Association is a Relationship and a Classifier to enable classification of links between things
36+
/// (in the universe). The co-domains (types) of the associationEnd Features are the relatedTypes, as
37+
/// co-domain and participants (linked things) of an Association identify each other.
38+
/// </summary>
39+
[Class(xmiId: "_18_5_3_12e503d9_1533160651716_116234_42240", isAbstract: false, isFinalSpecialization: false, isActive: false)]
40+
[GeneratedCode("SysML2.NET", "latest")]
41+
public partial interface IAssociation : IClassifier, IRelationship
42+
{
43+
/// <summary>
44+
/// The features of the Association that identify the things that can be related by it. A concrete
45+
/// Association must have at least two associationEnds. When it has exactly two, the Association is
46+
/// called a binary Association.
47+
/// </summary>
48+
[Property(xmiId: "_18_5_3_12e503d9_1562477648742_24204_22901", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
49+
[RedefinedProperty(propertyName: "_18_5_3_12e503d9_1562476168385_824569_22106")]
50+
List<Guid> AssociationEnd { get; }
51+
52+
/// <summary>
53+
/// The types of the associationEnds of the Association, which are the relatedElements of the
54+
/// Association considered as a Relationship.
55+
/// </summary>
56+
[Property(xmiId: "_18_5_3_12e503d9_1533160674994_4339_43349", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)]
57+
[RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")]
58+
List<Guid> RelatedType { get; }
59+
60+
/// <summary>
61+
/// The source relatedType for this Association. It is the first relatedType of the Association.
62+
/// </summary>
63+
[Property(xmiId: "_19_0_2_12e503d9_1594939013292_377668_3566", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
64+
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")]
65+
[RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674971_696758_43228")]
66+
Guid? SourceType { get; }
67+
68+
/// <summary>
69+
/// The target relatedTypes for this Association. This includes all the relatedTypes other than the
70+
/// sourceType.
71+
/// </summary>
72+
[Property(xmiId: "_19_0_2_12e503d9_1594939237325_861933_3707", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
73+
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674994_4339_43349")]
74+
[RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")]
75+
List<Guid> TargetType { get; }
76+
77+
}
78+
}
79+
80+
// ------------------------------------------------------------------------------------------------
81+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
82+
// ------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)