Re: [Simple-support] Suppressing class attribute in serialization
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2009-04-25 10:00:26
|
Hi, The TreeStrategy is basically the default strategy. You can extend that instead, it will give you the very same functionality. Niall --- On Fri, 4/24/09, Mirza Abbas Raza <abb...@ya...> wrote: > From: Mirza Abbas Raza <abb...@ya...> > Subject: [Simple-support] Suppressing class attribute in serialization > To: sim...@li... > Date: Friday, April 24, 2009, 3:32 PM > Hi, > > I have a class that is used for multiple purposes and hence > is needed to be serialized with a different element name in > the respective scenario. In all cases where the element name > is different than the class name, the class attribute is > injected by Simple. Looking into DefaultStrategy and also on > one of the forums, I understood that the label name is to be > removed from the map which is used for serialization. The > issue that I face is that I do not have to rewrite the whole > strategy but rather just not have the class name printed > out. I wanted to extend DefaultStrategy but it is protected. > Is there a simpler way to tweak this functionality? > Appreciate any help. > > Thanks, > Abbas > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables > unlimited > royalty-free distribution of the report engine for > externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > -----Inline Attachment Follows----- > > _______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support > |