Skip to content

Commit f8aa545

Browse files
[Add] PIM enum generation
[Add] PIM DTO Generation
1 parent 0602f9c commit f8aa545

File tree

103 files changed

+133220
-462457
lines changed

Some content is hidden

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

103 files changed

+133220
-462457
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="JoinOperator.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright 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.PIM
26+
{
27+
/// <summary>
28+
/// </summary>
29+
public enum JoinOperator
30+
{
31+
/// <summary>
32+
/// </summary>
33+
And,
34+
35+
/// <summary>
36+
/// </summary>
37+
Or,
38+
39+
}
40+
}
41+
42+
// ------------------------------------------------------------------------------------------------
43+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
44+
// ------------------------------------------------------------------------------------------------
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="Operator.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright 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.PIM
26+
{
27+
/// <summary>
28+
/// </summary>
29+
public enum Operator
30+
{
31+
/// <summary>
32+
/// </summary>
33+
InstanceOf,
34+
35+
/// <summary>
36+
/// </summary>
37+
EQ,
38+
39+
/// <summary>
40+
/// </summary>
41+
LT,
42+
43+
/// <summary>
44+
/// </summary>
45+
LTEQ,
46+
47+
/// <summary>
48+
/// </summary>
49+
GT,
50+
51+
/// <summary>
52+
/// </summary>
53+
GTEQ,
54+
55+
/// <summary>
56+
/// </summary>
57+
In,
58+
59+
}
60+
}
61+
62+
// ------------------------------------------------------------------------------------------------
63+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
64+
// ------------------------------------------------------------------------------------------------
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="Branch.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright 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.PIM.DTO
26+
{
27+
using System;
28+
using System.CodeDom.Compiler;
29+
using System.Collections.Generic;
30+
31+
using SysML2.NET.Common;
32+
using SysML2.NET.Decorators;
33+
34+
/// <summary>
35+
/// </summary>
36+
[Class(xmiId: "API_Model-Branch", isAbstract: false, isFinalSpecialization: false, isActive: false)]
37+
[GeneratedCode("sysml2.net", "latest")]
38+
public partial class Branch : IBranch
39+
{
40+
/// <summary>
41+
/// Set of ID's that are assigned using legacy or tool specific implementations that don't conform to
42+
/// Kernel Object Lifecycle (KOL) or RFC 4122. For example git's SHA1 hashing id mechanism or historical
43+
/// SysML 1.X ID's
44+
/// </summary>
45+
[Property(xmiId: "API_Model-Record-alias", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: false, isReadOnly: true, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
46+
[Implements(implementation: "IRecord.Alias")]
47+
public List<string> Alias { get; set; } = [];
48+
49+
/// <summary>
50+
/// </summary>
51+
[Property(xmiId: "API_Model-CommitReference-created", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
52+
[Implements(implementation: "ICommitReference.Created")]
53+
public DateTime Created { get; set; }
54+
55+
/// <summary>
56+
/// </summary>
57+
[Property(xmiId: "API_Model-Record-description", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
58+
[Implements(implementation: "IRecord.Description")]
59+
public string Description { get; set; }
60+
61+
/// <summary>
62+
/// </summary>
63+
[Property(xmiId: "API_Model-Branch-head", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
64+
[RedefinedProperty(propertyName: "API_Model-CommitReference-referencedCommit")]
65+
[Implements(implementation: "IBranch.Head")]
66+
public new Guid Head { get; set; }
67+
68+
/// <summary>
69+
/// Uniqueness constraints?
70+
/// </summary>
71+
[Property(xmiId: "API_Model-Record-humanIdentifier", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: true, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
72+
[SubsettedProperty(propertyName: "API_Model-Record-alias")]
73+
[Implements(implementation: "IRecord.HumanIdentifier")]
74+
public string HumanIdentifier { get; set; }
75+
76+
/// <summary>
77+
/// Every Record shall have a calculated globally unique identifier. This identifier shall conform to
78+
/// RFC 4122.
79+
/// </summary>
80+
[Property(xmiId: "API_Model-Record-id", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: true, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
81+
[Implements(implementation: "IRecord.Id")]
82+
public Guid Id { get; set; }
83+
84+
/// <summary>
85+
/// </summary>
86+
[Property(xmiId: "API_Model-CommitReference-name", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
87+
[Implements(implementation: "ICommitReference.Name")]
88+
public string Name { get; set; }
89+
90+
/// <summary>
91+
/// </summary>
92+
[Property(xmiId: "API_Model-Branch-owningProject", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
93+
[RedefinedProperty(propertyName: "API_Model-CommitReference-owningProject")]
94+
[Implements(implementation: "IBranch.OwningProject")]
95+
public new Guid OwningProject { get; set; }
96+
97+
/// <summary>
98+
/// </summary>
99+
[Property(xmiId: "API_Model-CommitReference-owningProject", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
100+
[RedefinedByProperty("IBranch.OwningProject")]
101+
[Implements(implementation: "ICommitReference.OwningProject")]
102+
Guid ICommitReference.OwningProject
103+
{
104+
get => throw new InvalidOperationException("Redefined by property IBranch.OwningProject");
105+
set => throw new InvalidOperationException("Redefined by property IBranch.OwningProject");
106+
}
107+
108+
/// <summary>
109+
/// </summary>
110+
[Property(xmiId: "API_Model-CommitReference-referencedCommit", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
111+
[RedefinedByProperty("IBranch.Head")]
112+
[Implements(implementation: "ICommitReference.ReferencedCommit")]
113+
Guid ICommitReference.ReferencedCommit
114+
{
115+
get => throw new InvalidOperationException("Redefined by property IBranch.Head");
116+
set => throw new InvalidOperationException("Redefined by property IBranch.Head");
117+
}
118+
119+
/// <summary>
120+
/// The context specific URI from which the data represented in LinkedDataRecord's can be retrieved
121+
/// </summary>
122+
[Property(xmiId: "API_Model-Record-resourceIdentifier", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
123+
[Implements(implementation: "IRecord.ResourceIdentifier")]
124+
public Uri ResourceIdentifier { get; set; }
125+
126+
}
127+
}
128+
129+
// ------------------------------------------------------------------------------------------------
130+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
131+
// ------------------------------------------------------------------------------------------------
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="Commit.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright 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.PIM.DTO
26+
{
27+
using System;
28+
using System.CodeDom.Compiler;
29+
using System.Collections.Generic;
30+
31+
using SysML2.NET.Core;
32+
using SysML2.NET.Decorators;
33+
34+
/// <summary>
35+
/// A record of changes made to ElementRecord's within a particular Branch of a Resource
36+
/// </summary>
37+
[Class(xmiId: "_19_0_2_12e503d9_1577820468971_790808_65979", isAbstract: false, isFinalSpecialization: false, isActive: false)]
38+
[GeneratedCode("sysml2.net", "latest")]
39+
public partial class Commit : ICommit
40+
{
41+
/// <summary>
42+
/// Set of ID's that are assigned using legacy or tool specific implementations that don't conform to
43+
/// Kernel Object Lifecycle (KOL) or RFC 4122. For example git's SHA1 hashing id mechanism or historical
44+
/// SysML 1.X ID's
45+
/// </summary>
46+
[Property(xmiId: "_19_0_2_12e503d9_1577820469740_197983_66089", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: false, isReadOnly: true, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
47+
[Implements(implementation: "IRecord.Alias")]
48+
public List<string> Alias { get; set; } = [];
49+
50+
/// <summary>
51+
/// </summary>
52+
[Property(xmiId: "_19_0_2_12e503d9_1577820469724_226337_66058", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
53+
[Implements(implementation: "ICommit.Change")]
54+
public List<Guid> Change { get; set; } = [];
55+
56+
/// <summary>
57+
/// </summary>
58+
[Property(xmiId: "_19_0_2_12e503d9_1577820469727_54677_66063", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
59+
[Implements(implementation: "ICommit.Created")]
60+
public DateTime Created { get; set; }
61+
62+
/// <summary>
63+
/// </summary>
64+
[Property(xmiId: "_19_0_4_58901f1_1629741832147_14565_28133", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
65+
[Implements(implementation: "IRecord.Description")]
66+
public string Description { get; set; }
67+
68+
/// <summary>
69+
/// Uniqueness constraints?
70+
/// </summary>
71+
[Property(xmiId: "_19_0_2_12e503d9_1577820469741_716007_66090", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: true, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
72+
[SubsettedProperty(propertyName: "_19_0_2_12e503d9_1577820469740_197983_66089")]
73+
[Implements(implementation: "IRecord.HumanIdentifier")]
74+
public string HumanIdentifier { get; set; }
75+
76+
/// <summary>
77+
/// Every Record shall have a calculated globally unique identifier. This identifier shall conform to
78+
/// RFC 4122.
79+
/// </summary>
80+
[Property(xmiId: "_19_0_2_12e503d9_1577820469739_885136_66087", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: true, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
81+
[Implements(implementation: "IRecord.Id")]
82+
public Guid Id { get; set; }
83+
84+
/// <summary>
85+
/// </summary>
86+
[Property(xmiId: "_19_0_2_12e503d9_1577820469728_610810_66065", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
87+
[Implements(implementation: "ICommit.OwningProject")]
88+
public Guid OwningProject { get; set; }
89+
90+
/// <summary>
91+
/// </summary>
92+
[Property(xmiId: "_19_0_2_12e503d9_1577820469727_74119_66064", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
93+
[Implements(implementation: "ICommit.PreviousCommits")]
94+
public List<Guid> PreviousCommits { get; set; } = [];
95+
96+
/// <summary>
97+
/// The context specific URI from which the data represented in LinkedDataRecord's can be retrieved
98+
/// </summary>
99+
[Property(xmiId: "_19_0_2_12e503d9_1577820469740_90190_66088", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)]
100+
[Implements(implementation: "IRecord.ResourceIdentifier")]
101+
public Uri ResourceIdentifier { get; set; }
102+
103+
/// <summary>
104+
/// </summary>
105+
[Property(xmiId: "_19_0_4_58901f1_1629496059367_814933_41", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)]
106+
[Implements(implementation: "ICommit.VersionedData")]
107+
public List<Guid> VersionedData { get; } = [];
108+
109+
}
110+
}
111+
112+
// ------------------------------------------------------------------------------------------------
113+
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
114+
// ------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)