-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #527 from mpostol/SemanticData-6.1.3
Fixed ValidateAndExportModel for ADITest and eoursel510Test
- Loading branch information
Showing
6 changed files
with
116 additions
and
27 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
29 changes: 29 additions & 0 deletions
29
SemanticData/UANodeSetValidation/IAddressSpaceURIRecalculate.cs
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,29 @@ | ||
//___________________________________________________________________________________ | ||
// | ||
// Copyright (C) 2021, Mariusz Postol LODZ POLAND. | ||
// | ||
// To be in touch join the community at GITTER: https://gitter.im/mpostol/OPC-UA-OOI | ||
//___________________________________________________________________________________ | ||
|
||
using System; | ||
|
||
namespace UAOOI.SemanticData.UANodeSetValidation | ||
{ | ||
/// <summary> | ||
/// Interface IAddressSpaceURIRecalculate is used to recalculate indexes in the imported model | ||
/// </summary> | ||
internal interface IAddressSpaceURIRecalculate | ||
{ | ||
/// <summary> | ||
/// Searches for an index that matches the <paramref name="URI"/>, and returns the zero-based index of the first occurrence within the namespace table. | ||
/// </summary> | ||
/// <param name="URI">The URI to be glistered in the namespace table.</param> | ||
/// <returns> | ||
/// The zero-based index of the first occurrence of <paramref name="URI"/> | ||
/// </returns> | ||
/// <exception cref="System.ArgumentNullException">URI is null.</exception> | ||
ushort GetURIIndexOrAppend(Uri URI); | ||
|
||
void UpadateModelOrAppend(IModelTableEntry model); | ||
} | ||
} |
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,56 @@ | ||
//___________________________________________________________________________________ | ||
// | ||
// Copyright (C) 2021, Mariusz Postol LODZ POLAND. | ||
// | ||
// To be in touch join the community at GITTER: https://gitter.im/mpostol/OPC-UA-OOI | ||
//___________________________________________________________________________________ | ||
|
||
using System; | ||
|
||
namespace UAOOI.SemanticData.UANodeSetValidation.XML | ||
{ | ||
/// <summary> | ||
/// Class ModelTableEntry. | ||
/// Implements the <see cref="UAOOI.SemanticData.UANodeSetValidation.IModelTableEntry" /> | ||
/// </summary> | ||
/// <seealso cref="UAOOI.SemanticData.UANodeSetValidation.IModelTableEntry" /> | ||
public partial class ModelTableEntry : IModelTableEntry | ||
{ | ||
/// <summary> | ||
/// Gets or sets the required model. A list of dependencies for the model. If the model requires a minimum version the PublicationDate shall be specified. | ||
/// Tools which attempt to resolve these dependencies may accept any PublicationDate after this date. | ||
/// </summary> | ||
/// <value>The required model.</value> | ||
IModelTableEntry[] IModelTableEntry.RequiredModel => RequiredModel; | ||
|
||
/// <summary> | ||
/// Gets or sets the role permissions. The list of default RolePermissions for all Nodes in the model. | ||
/// </summary> | ||
/// <value>The role permissions.</value> | ||
IRolePermission[] IModelTableEntry.RolePermissions => RolePermissions; | ||
|
||
/// <summary> | ||
/// Gets or sets the access restrictions. The default <c>AccessRestrictions</c> that apply to all <c>Nodes</c> in the model. | ||
/// </summary> | ||
/// <value>The access restrictions.</value> | ||
byte IModelTableEntry.AccessRestrictions => AccessRestrictions; | ||
|
||
/// <summary> | ||
/// Gets or sets the model URI. The URI for the model. This URI should be one of the entries in the <see cref="NamespaceTable" /> table. | ||
/// </summary> | ||
/// <value>The model URI.</value> | ||
Uri IModelTableEntry.ModelUri => new Uri(ModelUri); | ||
|
||
/// <summary> | ||
/// Gets or sets the publication date. When the model was published. This value is used for comparisons if the model is defined in multiple UANodeSet files. | ||
/// </summary> | ||
/// <value>The publication date.</value> | ||
DateTime? IModelTableEntry.PublicationDate => this.PublicationDateSpecified ? PublicationDate : new Nullable<DateTime>(); | ||
|
||
/// <summary> | ||
/// Gets or sets the version. The version of the model defined in the UANodeSet. This is a human readable string and not intended for programmatic comparisons. | ||
/// </summary> | ||
/// <value>The version.</value> | ||
string IModelTableEntry.Version => Version; | ||
} | ||
} |