Skip to content

Commit 9d90987

Browse files
committed
Upgrade metamodel v3.1
1 parent d29262d commit 9d90987

File tree

270 files changed

+1547
-1332
lines changed

Some content is hidden

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

270 files changed

+1547
-1332
lines changed

src/AasCore.Aas3_0/Attributes/CountForHash.cs

-12
This file was deleted.

src/AasCore.Aas3_0/Attributes/MetaModelName.cs

-15
This file was deleted.

src/AasCore.Aas3_0/Attributes/SkipForReflection.cs

-11
This file was deleted.

src/AasCore.Aas3_0/Attributes/SkipForSearch.cs

-11
This file was deleted.

src/AasCore.Aas3_0/Attributes/TextSearchable.cs

-10
This file was deleted.

src/AasCore.Aas3_0/DiaryData/IAasDiaryEntry.cs

-6
This file was deleted.

src/AasCore.Aas3_0/DiaryData/IDiaryData.cs

-13
This file was deleted.

src/AasCore.Aas3_0/AasCore.Aas3_0.csproj src/AasCore.Aas3_1/AasCore.Aas3_1.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<Nullable>enable</Nullable>
55
<Configurations>Debug;Release;DebugSlow</Configurations>
66
<Platforms>AnyCPU</Platforms>
7-
<LangVersion>8</LangVersion>
7+
<LangVersion>12</LangVersion>
88

9-
<PackageId>AasCore.Aas3_0</PackageId>
9+
<PackageId>AasCore.Aas3_1</PackageId>
1010
<Version>1.0.0-rc1</Version>
1111
<Authors>Marko Ristin</Authors>
1212
<Description>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/********************************************************************************
2+
* Copyright (c) {2019 - 2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
13+
14+
using System;
15+
16+
namespace AasCore.Aas3_1.Attributes
17+
{
18+
/// <summary>
19+
/// This attribute indicates, that it should e.g. serialized in JSON.
20+
/// </summary>
21+
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
22+
public class CountForHash : Attribute
23+
{
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/********************************************************************************
2+
* Copyright (c) {2019 - 2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
13+
14+
namespace AasCore.Aas3_1.Attributes
15+
{
16+
/// <summary>
17+
/// This attribute indicates, that the field / property is searchable
18+
/// </summary>
19+
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple = true)]
20+
public class MetaModelName : System.Attribute
21+
{
22+
public string name;
23+
public MetaModelName(string name)
24+
{
25+
this.name = name;
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/********************************************************************************
2+
* Copyright (c) {2019 - 2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
13+
14+
namespace AasCore.Aas3_1.Attributes
15+
{
16+
/// <summary>
17+
/// This attribute indicates, that the field / property shall be skipped for reflection
18+
/// in order to avoid cycles
19+
/// </summary>
20+
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple = true)]
21+
public class SkipForReflection : System.Attribute
22+
{
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/********************************************************************************
2+
* Copyright (c) {2019 - 2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
13+
14+
namespace AasCore.Aas3_1.Attributes
15+
{
16+
/// <summary>
17+
/// This attribute indicates, that the field / property shall be skipped for searching, because it is not
18+
/// directly displayed in Package Explorer
19+
/// </summary>
20+
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple = true)]
21+
public class SkipForSearch : System.Attribute
22+
{
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/********************************************************************************
2+
* Copyright (c) {2019 - 2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
13+
14+
namespace AasCore.Aas3_1.Attributes
15+
{
16+
/// <summary>
17+
/// This attribute indicates, that the field / property is searchable
18+
/// </summary>
19+
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple = true)]
20+
public class TextSearchable : System.Attribute
21+
{
22+
}
23+
}

src/AasCore.Aas3_0/DiaryData/DiaryDataDef.cs src/AasCore.Aas3_1/DiaryData/DiaryDataDef.cs

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
using AasCore.Aas3_0;
1+
/********************************************************************************
2+
* Copyright (c) {2019 - 2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
13+
14+
using AasCore.Aas3_1;
215
using System;
316
using System.Collections.Generic;
417
using System.Text.Json.Serialization;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/********************************************************************************
2+
* Copyright (c) {2019 - 2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
13+
14+
namespace AdminShellNS.DiaryData
15+
{
16+
public interface IAasDiaryEntry
17+
{
18+
}
19+
}
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/********************************************************************************
2+
* Copyright (c) {2019 - 2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
13+
14+
using System;
15+
using System.Collections.Generic;
16+
using System.Linq;
17+
using System.Text;
18+
using System.Threading.Tasks;
19+
20+
namespace AdminShellNS.DiaryData
21+
{
22+
public interface IDiaryData
23+
{
24+
DiaryDataDef DiaryData { get; }
25+
}
26+
}
File renamed without changes.

src/AasCore.Aas3_0/constants.cs src/AasCore.Aas3_1/constants.cs

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,31 @@
1+
/********************************************************************************
2+
* Copyright (c) {2019 - 2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
13+
114
/*
215
* This code has been automatically generated by aas-core-codegen.
316
* Do NOT edit or append.
417
*/
518

619
using System.Collections.Generic; // can't alias
720

8-
namespace AasCore.Aas3_0
21+
namespace AasCore.Aas3_1
922
{
1023
/// <summary>
1124
/// Provide constant values of the meta-model.
1225
/// </summary>
1326
public static class Constants
1427
{
28+
//TODO:jtikekar: remove
1529
public static readonly HashSet<string> ValidCategoriesForDataElement = (
1630
new HashSet<string>()
1731
{
@@ -48,6 +62,7 @@ public static class Constants
4862
KeyTypes.BasicEventElement,
4963
KeyTypes.Blob,
5064
KeyTypes.Capability,
65+
KeyTypes.ContainerElement,
5166
KeyTypes.DataElement,
5267
KeyTypes.Entity,
5368
KeyTypes.EventElement,
@@ -70,6 +85,7 @@ public static class Constants
7085
KeyTypes.BasicEventElement,
7186
KeyTypes.Blob,
7287
KeyTypes.Capability,
88+
KeyTypes.ContainerElement,
7389
KeyTypes.DataElement,
7490
KeyTypes.Entity,
7591
KeyTypes.EventElement,
@@ -96,6 +112,7 @@ public static class Constants
96112
KeyTypes.BasicEventElement,
97113
KeyTypes.Blob,
98114
KeyTypes.Capability,
115+
KeyTypes.ContainerElement,
99116
KeyTypes.DataElement,
100117
KeyTypes.Entity,
101118
KeyTypes.EventElement,
@@ -129,6 +146,7 @@ public static class Constants
129146
KeyTypes.BasicEventElement,
130147
KeyTypes.Blob,
131148
KeyTypes.Capability,
149+
KeyTypes.ContainerElement,
132150
KeyTypes.DataElement,
133151
KeyTypes.Entity,
134152
KeyTypes.EventElement,

src/AasCore.Aas3_0/copying.cs src/AasCore.Aas3_1/copying.cs

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1+
/********************************************************************************
2+
* Copyright (c) {2019 - 2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
13+
114
/*
215
* This code has been automatically generated by aas-core-codegen.
316
* Do NOT edit or append.
417
*/
518

6-
using Aas = AasCore.Aas3_0; // renamed
19+
using Aas = AasCore.Aas3_1; // renamed
720
using System.Collections.Generic; // can't alias
821

9-
namespace AasCore.Aas3_0
22+
namespace AasCore.Aas3_1
1023
{
1124
/// <summary>
1225
/// Allow for making shallow and deep copies of AAS model instances.

0 commit comments

Comments
 (0)