Thanks, cause I was wondering how such a rudimentatry use case where a user may want to marshall/unmarshall an object graph as it is, be not supported in a easy way.
- Shishir -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Friday, March 18, 2005 2:59 PM To: [email protected] Subject: Re: [jibx-users] No Binding Definition Eitan's answer is correct, but I want to add that there is a tool to generate a default binding definition from a set of Java classes using introspection. I'll be releasing an initial version of this next week with the 1.0 RC code. - Dennis Eitan Suez wrote: > i may be wrong but i don't believe your quesion makes sense in the > context of jibx. jibx by definition requires a binding file. > > you could write a program that introspects classes and derives a jibx > binding file from them. this should be fairly straightforward / > simple to implement by using a combination of introspection and > dom4j. > > pseudocode: > > class BindingMaker > { > BindingMaker(Class cls) > { > a. use javabeans to introspect cls properties > b. write out jibx binding skeleton (<binding>) using dom4j > c. write <mapping> tag for class > d. for each property: > 1. is it a primitive or string type? if so, write out a > value tag > 2. is it a complex type? if so, write out a structure tag > and recurse on structure type > 3. is it a collection type? if so, write out a collection > tag, check collection type and > if a complex type then do [2] > } > } > > / eitan > > > > On Mar 16, 2005, at 4:37 PM, Shishir K. Singh wrote: > >> Hello, >> >> I am evaluating JiBX and came across this issue. I want to serialize >> an object Graph only on the methods (get/set) and basically have no >> binding definition. In other words, dump everything as it is that has >> a get/set with the default object graph sructure. In this case , I >> won't be having any binding definition and hence, no Binding >> compilation would be needed. How can I achieve this ? >> >> Thanks >> Shishir > > > > ------------------------------------------------------- > 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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > 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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ 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://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
