By using multiple bindings for say a set of classes (A, B, C)

where C would result in a different xml marshalled

does that mean i have to create two bindings with both having a, b and c 
defined.. in this case, c would be defined differently in the <mapping> 
</mapping> section.

I saw somewhere best practices is to use <structures> more as it's more 
flexible along with the label / using mechanism. But there are many cases where 
one class is mapped to xml elements differently in one context over another.

It would be great to see selection of mappings at the class mapping level 
instead of an entire binding starting from the root object.

Hmm.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Guillaume
Pothier
Sent: Tuesday, December 21, 2004 2:56 PM
To: [email protected]
Subject: Re: [jibx-users] Multiple mappings of a class in one binding


Seems so.
If I remember well, Denis had a plan to make this kind of things more 
straightforward. Confirmation, Denis?
g

Felix Lo wrote:

>So instead of multiple mappings of a class all into one binding, probably the 
>best idea is to separet the mappings into different bindings and compile them 
>together into the classes. and choose the binding at runtime?
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Guillaume
>Pothier
>Sent: Tuesday, December 21, 2004 12:15 PM
>To: [email protected]
>Subject: Re: [jibx-users] Multiple mappings of a class in one binding
>
>
>You can define several bindings, and at runtime choose which binding you 
>want to use.
>There is a section on the JiBX website on this topic: 
>http://jibx.sourceforge.net/tutorial/binding-custom.html see the 
>paragraph "Controlling JiBX with front-end code"
>Felix Lo wrote:
>
>  
>
>>Hi,
>>
>>For marshalling binding. Is it possible to have one binding but have mutliple 
>><mapping>s for one class and somehow switch mappings along the way?
>>
>>I notice that the best practice is to use <structures> instead of overusing 
>><bindings>
>>
>>
>>but I have an Object reference that I would like to have it's type be 
>>determined at runtime by using <mappings> and defining a mapping for the 
>>possible class that can be referenced by the Object reference.
>>
>>The problem is, I might want to marshall that item-type say class A 
>>differently(some fields are not used) but all defined in one binding?
>>
>>
>>Any Ideas?
>>
>>Thanks,
>>
>>Felix
>>
>>
>>
>>---------------------------------------------------------------------
>>This transmission (including any attachments) may contain confidential 
>>information, privileged material (including material protected by the 
>>solicitor-client or other applicable privileges), or constitute non-public 
>>information. Any use of this information by anyone other than the intended 
>>recipient is prohibited. If you have received this transmission in error, 
>>please immediately reply to the sender and delete this information from your 
>>system. Use, dissemination, distribution, or reproduction of this 
>>transmission by unintended recipients is not authorized and may be unlawful.
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now. 
>>http://productguide.itmanagersjournal.com/
>>_______________________________________________
>>jibx-users mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/jibx-users
>> 
>>
>>    
>>
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now. 
>http://productguide.itmanagersjournal.com/
>_______________________________________________
>jibx-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
>
>---------------------------------------------------------------------
>This transmission (including any attachments) may contain confidential 
>information, privileged material (including material protected by the 
>solicitor-client or other applicable privileges), or constitute non-public 
>information. Any use of this information by anyone other than the intended 
>recipient is prohibited. If you have received this transmission in error, 
>please immediately reply to the sender and delete this information from your 
>system. Use, dissemination, distribution, or reproduction of this transmission 
>by unintended recipients is not authorized and may be unlawful.
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now. 
>http://productguide.itmanagersjournal.com/
>_______________________________________________
>jibx-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jibx-users
>  
>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users



---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to