on 12-08-2010 8:51 AM
Hi,
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hava you tried recursive node?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.