Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit 1f44691

Browse files
committed
AddIn and DictionaryEntry not attached with parentNodeId set
1 parent ccde03d commit 1f44691

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • dataformat-uanodeset/src/main/java/io/adminshell/aas/v3/dataformat/i4aas/mappers

dataformat-uanodeset/src/main/java/io/adminshell/aas/v3/dataformat/i4aas/mappers/I4AASMapper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ public final UAObject createIdentifierKeyValuePairList(String folderName) {
148148
}
149149

150150
protected static void attachAsType(UAInstance parent, UAInstance child, BasicIdentifier typeId) {
151-
child.setParentNodeId(parent.getNodeId());
152151
if (child.getReferences() == null) {
153152
child.setReferences(new ListOfReferences());
154153
}
@@ -164,14 +163,17 @@ protected static void attachAsType(UAInstance parent, UAInstance child, BasicIde
164163
}
165164

166165
protected static final void attachAsProperty(UAObject parent, UAVariable child) {
166+
child.setParentNodeId(parent.getNodeId());
167167
attachAsType(parent, child, UaIdentifier.HasProperty);
168168
}
169169

170170
protected static final void attachAsComponent(UAObject parent, UAObject child) {
171+
child.setParentNodeId(parent.getNodeId());
171172
attachAsType(parent, child, UaIdentifier.HasComponent);
172173
}
173174

174175
protected static final void attachAsOrderedComponent(UAObject parent, UAObject child) {
176+
child.setParentNodeId(parent.getNodeId());
175177
attachAsType(parent, child, UaIdentifier.HasOrderedComponent);
176178

177179
}

0 commit comments

Comments
 (0)