Dennis Sosnoski wrote:

I'm missing some information here, I think. Are you talking about separate binding definitions for these classes, or different mappings for the same class within a single binding definition?

You can define separate bindings for the combinations of A+B+C vs. A+B+D, and as long as you compile these bindings at the same time you should have no problem - A+B will be bound one way in binding1, the other way in binding2. If that's not what you're looking for please clarify and I'll see what I can suggest.

 - Dennis

<a>
 <c/> <c/>
</a>

and

<a>
 <d/> <d/>
</a>

are the xml documents that I want to deserialize. c elements should be mapped to class C and d elements should be mapped to class D. But I am hoping multiple implementations of interface B. So, all I want to specify in A's binding is that it contains a collection of objects of type B. How can I do this in two bindings (assuming that I will be able to compile both bindings at the same time)?

Venkatesh Prasad Ranganath wrote:

Hi,

Class A contains a collection of objects that provide Interface B. Class A has a JiBX mapping.
Both class C and D implement B and both have a JiBX mapping.


The issue is I can "connect" the mapping of C and A. Similarly, I can "connect" the mapping of B and A. However, the A class resulting in both cases will not be compatible. In short I cannot use the JiBXed A class from scenario one in scenario two.
Any clues, solution, pointers?







-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users




--

Venkatesh Prasad Ranganath,
Dept. Computing and Information Science,
Kansas State University, US.
web: http://www.cis.ksu.edu/~rvprasad



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to