[ http://jira.codehaus.org/browse/JIBX-8?page=comments#action_54987 ] 

Maros Ivanco commented on JIBX-8:
---------------------------------

What about support for marshalling  choice, when choice elements are mapped 
into the same field?:

class ...{
   private Vehicle vehicle;
}

<mapping ...>
  <structure field="vehicle" type="Vehicle" map-as="Car" usage="optional"/>
  <structure field="vehicle" type="Vehicle" map-as="Truck" usage="optional"/>
   .
   .
   .
</mapping>

<...>
   <car id="1"/>
</...>

or

<...>
   <truck weight="1"/>
</...>

This case seams to be similar to the heterogenous collections...

> Add support for xs:choice
> -------------------------
>
>          Key: JIBX-8
>          URL: http://jira.codehaus.org/browse/JIBX-8
>      Project: JiBX
>         Type: New Feature

>   Components: core
>     Reporter: Dennis Sosnoski
>     Assignee: Dennis Sosnoski
>     Priority: Minor
>      Fix For: 1.0-RC1

>
>
> xs:choice support is worth adding, and should be easy to fit into the code 
> generation (since it's already basically there for the collection handling 
> case; the only difference is that for a choice there's no looping to handle 
> multiple elements).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to