-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for AID and AIMC Submodel Templates (#211)
* A commit for AID and AIMC implementations This commit combines all implementation based on AID and AIMC. AASXPluginAID is for AID and AASXPluginAssetInterfaceDesc is majorly for AIMC. * some newlines added for code readability
- Loading branch information
Showing
53 changed files
with
9,958 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
Copyright (c) 2018-2023 Festo SE & Co. KG <https://www.festo.com/net/de_de/Forms/web/contact_international> | ||
Author: Michael Hoffmeister | ||
This source code is licensed under the Apache License 2.0 (see LICENSE.txt). | ||
This source code may use other Open Source software components (see LICENSE.txt). | ||
*/ | ||
using AdminShellNS.Exceptions; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace Extensions | ||
{ | ||
public static class ExtendReferenceList | ||
{ | ||
/// <summary> | ||
/// Useful, if the searched reference will have only on key (e.g. ECLASS properties) | ||
/// </summary> | ||
public static bool MatchesAnyWithExactlyOneKey(this List<IReference> reflist, IKey key, MatchMode matchMode = MatchMode.Strict) | ||
{ | ||
if (key == null || reflist == null || reflist.Count < 1) | ||
{ | ||
return false; | ||
} | ||
|
||
var found = false; | ||
foreach (var r in reflist) | ||
found = found || r.MatchesExactlyOneKey(key, matchMode); | ||
|
||
return found; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.