If you want to use strings, then simply

<collection field="seatsRequestedList"
                create-type="java.util.ArrayList"
               usage="optional">
      <value name="SeatsRequested" />
    </collection>


would work for such an xml instance:

<SeatsRequested>1</SeatsRequested>
<SeatsRequested>2</SeatsRequested>
<SeatsRequested>3</SeatsRequested>

I think you cannot use BigInteger since it's not listed at  
http://jibx.sourceforge.net/binding/conversions.html . It could be 
possible by using a custom serializer/deserializer.

hth,

SerkanC




Paul Mahoney wrote:
> I'm trying to bind an array of BigInteger/s so used the obvious binding
> construct as follows:
>
>   ...
>   <mapping class="uk.co.xact.rccl.TravelerInfoSummaryType" abstract="true">
>     <collection field="seatsRequestedList"
>                 create-type="java.util.ArrayList"
>                 item-type="java.math.BigInteger"
>                usage="optional">
>       <structure name="SeatsRequested" />
>     </collection>
>   </mapping>
>   ...
>
> But the JiBX compiler complains that it cannot modify
> 'java.math.BigInteger'... which isn't a
> surprise really. The above does compile with item-type 'java.lang.String'
> which cannot be
> modified either!! So what is the correct way to get a collection of
> BigInteger to work?
>
> Many thanks in advance
>
> Paul
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>   


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to