Bug 176393 - [emfWorkbench] Translator framework does not support dependency objects in collections
Summary: [emfWorkbench] Translator framework does not support dependency objects in co...
Status: NEW
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Carl Anderson CLA
QA Contact: Konstantin Komissarchik CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-03-05 12:31 EST by Paul Fullbright CLA
Modified: 2008-11-12 12:38 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Fullbright CLA 2007-03-05 12:31:54 EST
Currently the translator framework supports writing this EMF object model:

ParentObject -> IntermediateObject -> ChildObject

to this xml structure:

<parent>
    <child>blah</child>
</parent>

by use of a DependencyTranslator.

However it is not possible to support *this* xml structure:

<parent>
    <child>blah</child>
    <child>blah</child>
    ...
</parent>

because of the way that the EMF2DOMAdapterImpl is written.  Currently if you
want to support an xml structure of this form, you can have no intermediate
objects in your model.

This is important for putting behavior on the intermediate object when the actual value mapped is an attribute type (EString, for instance), for which it is also impossible to add behavior.