Generally speaking, the parent node can access the child nodes.
But the child nodes cannot get or modify parents or siblings.
In order for the parent node to get the child nodes, you should use the ProgramNodeVisitor
to visit any URCap program node child.
Then, each of these children should implement a URCap proprietary API.
And if the parent canGetAs()
on these child URCap nodes, they are an instance of the desired child node type.
The nodes can then be configured using the methods provided by this proprietary API.
An example of this implementation can be found in this example:
Btw, I am a bit in doubt of the usage of your ContributionProvider
in the child node contribution.
The purpose of the ContributionProvider, is to provide access to an active contribution from the View-class.
And the usage displayed here, is probably not supported.