DescriptionElement.toComponent() should check for changes to the infoset 
between invocations
--------------------------------------------------------------------------------------------

                 Key: WODEN-134
                 URL: https://issues.apache.org/jira/browse/WODEN-134
             Project: Woden
          Issue Type: Improvement
          Components: Parser
            Reporter: Graham Turrell


By design, DescriptionElement.toComponent() is invoked to generate the 
Component view of the WSDL infoset constructed either through WSDLReader, or 
directly via the infoset API.

In the latter case, a possible common usage scenario is :

1. Create infoset (Element view, from a parent DescriptionElement, say 
"descElement")
2. Generate the component view with an instance descElement.toComponent().
OK so far.
3. Change the model via the Element API (really just a continuation of step 1).
4. Regenerate the component view as in (2)

Currently, (4) will do nothing, leaving the component view in an inconsistent 
state. The ComponentModelBuilder (which handles toComponent()), sets a flag 
such that it runs once for any given DescriptionElement - subsequent calls are 
ignored. There is no way to clear this flag via the API, and the only 
workaround I have found is to completely rebuild the element hierachy with a 
fresh DescriptionElement. 

There is already a TODO in the code alluding to the problem, but hitherto no 
covering JIRA.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to