Hi There,
I have used the XSD2Java class to generate static types for the SCA core and
java schemas.
I am having some difficulties setting the implementation element of an
instantiated Component static type to a JavaImplementation static type
instance.
The relevant XSD segments are as follows:
<complexType name="Component">
<sequence>
<element ref="sca:implementation" minOccurs="0" maxOccurs="1"/>
...
<element name="implementation" type="sca:Implementation" abstract="true" />
<complexType name="Implementation" abstract="true">
...
<element name="implementation.java" type="sca:JavaImplementation"
substitutionGroup="sca:implementation"/>
<complexType name="JavaImplementation">
<complexContent>
<extension base="sca:Implementation">
...
However, my generated objects do not seem to allows me any way (at least by
using the generated set() method) to set a JavaImplementationImpl instance as
the child of a Component instance. Do Tuscany statically generated types
support the above XSD constructs?
Thanks,
Reza
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces.
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us