Sorry there was something wrong in my binding definition.
This is the correct one:
<collection name="coll" field="arraylist">
<structure name="struc1" type="strucClass">
<value name="element" field="element" />
</structure>
<structure name="struc2" type="strucClass">
<value name="element" field="element" />
</structure>
</collection>
regards
christian
-------- Original-Nachricht --------
> Datum: Fri, 08 Feb 2008 22:16:38 +0100
> Von: "Wolf-Dieter Mische" <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: [jibx-users] Collections with different structures and one class
> definition
> Hello,
>
> at the moment I'm searching for a solution to map the following
> collection:
>
> <coll>
> <struc1>
> <element>text1</element>
> </struc1>
> <struc2>
> <element>test2</element>
> </struc2>
> </coll>
>
> I tried this binding definition:
> <collection name="coll" field="arraylist">
> <structure name="struc1" type="struc1Class">
> <value name="element" field="element" />
> </structure>
> <structure name="struc2" type="struc2Class">
> <value name="element" field="element" />
> </structure>
> </collection>
>
> But the binding compiler says:
> Collection component must specify a test-method to distinguish from next
> component of compatible type for marshalling; on structure element at ...
>
> Now I'm searching for a example of the test-method or an other solution of
> my problem.
>
> King regards
> Wolle
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users