Skip to content

Commit

Permalink
NetworkIdentifier is missing in generated Model Design for DI model #629
Browse files Browse the repository at this point in the history


- marked affected code
  • Loading branch information
mpostol committed Aug 15, 2021
1 parent 3e770f9 commit 3ec08b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions SemanticData/UANodeSetValidation/AddressSpaceContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ IEnumerable<UAReferenceContext> IAddressSpaceBuildContext.GetReferences2Me(IUANo
/// </summary>
/// <param name="node">The root node of the requested children.</param>
/// <returns>Return an instance of <see cref="IEnumerable{IUANodeBase}" /> capturing all children of the selected node.</returns>
//TODO NetworkIdentifier is missing in generated Model Design for DI model #51
public IEnumerable<IUANodeBase> GetChildren(IUANodeBase node)
{
return m_References.Values.Where<UAReferenceContext>(x => Object.ReferenceEquals(x.SourceNode, node)).
Expand Down
4 changes: 4 additions & 0 deletions SemanticData/UANodeSetValidation/UANodeContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ void IUANodeBase.CalculateNodeReferences(INodeFactory nodeFactory, IValidator va
switch (_rfx.ReferenceKind)
{
case ReferenceKindEnum.Custom:
//TODO NetworkIdentifier is missing in generated Model Design for DI model #51
XmlQualifiedName _ReferenceType = _rfx.GetReferenceTypeName();
if (_ReferenceType == XmlQualifiedName.Empty)
{
Expand Down Expand Up @@ -189,6 +190,8 @@ void IUANodeBase.CalculateNodeReferences(INodeFactory nodeFactory, IValidator va
case ReferenceKindEnum.HasTypeDefinition: //TODO Recognize problems with P3.7.13 HasTypeDefinition ReferenceType #39
IsProperty = _rfx.TargetNode.IsPropertyVariableType;
break;
case ReferenceKindEnum.HierarchicalReferences:
throw new ArgumentOutOfRangeException($"the {nameof(ReferenceKindEnum.HierarchicalReferences)} is not handled");
}
}
Dictionary<string, IUANodeBase> _derivedChildren = m_BaseTypeNode == null ? new Dictionary<string, IUANodeBase>() : m_BaseTypeNode.GetDerivedInstances();
Expand Down Expand Up @@ -272,6 +275,7 @@ public XmlQualifiedName ExportBrowseNameBaseType(Action<NodeId> traceEvent)
/// </summary>
/// <returns>Dictionary&lt;System.String, IUANodeBase&gt;.</returns>
/// <exception cref="ArgumentOutOfRangeException">Circular loop in inheritance chain</exception>
//TODO NetworkIdentifier is missing in generated Model Design for DI model #51
public Dictionary<string, IUANodeBase> GetDerivedInstances()
{
if (m_InGetDerivedInstances)
Expand Down
2 changes: 2 additions & 0 deletions SemanticData/UANodeSetValidation/UAReferenceContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ internal UAReferenceContext(Reference reference, IAddressSpaceBuildContext addre
/// Gets the kind of the reference.
/// </summary>
/// <value>The kind of the reference.</value>
//TODO NetworkIdentifier is missing in generated Model Design for DI model #51
internal ReferenceKindEnum ReferenceKind
{
get
Expand Down Expand Up @@ -86,6 +87,7 @@ internal ReferenceKindEnum ReferenceKind
/// Gets a value indicating whether the reference has been derived form <see cref="ReferenceKindEnum.HasProperty"/> or <see cref="ReferenceKindEnum.HasComponent"/>.
/// </summary>
/// <value><c>true</c> if it is child reference; otherwise, <c>false</c>.</value>
//TODO NetworkIdentifier is missing in generated Model Design for DI model #51
internal bool ChildConnector => (ReferenceKind == ReferenceKindEnum.HasProperty) || (ReferenceKind == ReferenceKindEnum.HasComponent);

#endregion semantics
Expand Down

0 comments on commit 3ec08b8

Please sign in to comment.