Hi Marcel, You will need to modify one of the supplied examples to handle this type of generalized map. You'll need to first define how these different cases are going to be handled - so perhaps use the HashMapperStringToSchemaType code as a base, to handle the common simple types, then add special checks for Lists and Sets and handle them directly (using a fixed element name "list" or "set", I'd suggest). Everything else you should be able to handle by defining a <mapping> for the object class and using the HashMapperStringToComplex approach of invoking the marshalling or unmarshalling for the object class.
- Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Marcel Casado wrote: > Hi, > > I'm trying to marshall/unmarshall a HashMap that contains keys as > String and the values can be almost anything (List, Set, Integer, > String, bean, etc). I'm trying to use HashMapperStringToComplex or > HashMapperStringToSchemaType custom// marshaller/unmarshaller// but > I've been looking to the code and I think any of them can deal with > this case (Lists and Sets). Does anybody had to deal with something > like this?. Should I wrote a new custom marshaller/unmarshaller ? > > Thanks, > > -Marcel Casado > > > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat > certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > jibx-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jibx-users > _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
