[Simple-support] Suppressing class attribute in serialization
Brought to you by:
niallg
|
From: Mirza A. R. <abb...@ya...> - 2009-04-24 22:59:39
|
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 |