I have a question regarding the IWDTree / IWDTreeNodeType components.
I have a context looking like this:
Context + ResponseNode + PersonNode (1..1) + PersonAddressNode (empty node, placeholder) | + AdresNode (0..n) + PersonChildNode (empty node, placeholder) | + PersonNode (0..n) | + PersonAddressNode (empty node, placeholder) | + AddressNode (0..n) + PersonParentsNode (empty node, placeholder) + PersonNode (0..n) + PersonAddressNode (empty node, placeholder) + AddressNode (0..n)
The context represents a person, a person's address, and a person's children and parents with their respective addresses.
As a result, on different branches, a PersonNode and AddressNode can appear.
And for some strange reason, all PersonNodes and AddressNodes link to the same ResponseNode.PersonNode.PersonParentsNode.PersonNode and ResponseNode.PersonNode.PersonParentsNode.PersonNode.PersonAddressNode.AddressNode respectively, irregardless of their branch...
Is it illegal to have multiple PersonNode and AddressNode node names, and should they be named uniquely?
Generally, node names need to be unique inside the context, attributes in different nodes can have same names. I wonder if the context structure you described will result in code without compile errors.
The WD Tree can only be used with recursive context nodes or with a hierarchy of non-singleton child nodes.
Can you give an example how your tree should look like at runtime?