[Simple-support] Conditionnaly serializing an element
Brought to you by:
niallg
|
From: bubbleguuum <bub...@fr...> - 2011-10-24 09:52:03
|
Let's say I have an element: @Element private String blargh; In some cases I want to do serialization with the blargh element (if it has a value of course) and sometimes I want to do serialization without it (even if it has a value). One inconvenient way to achieve serialization without it, would be to set blargh to null before serialization and restore its value after. Is there something more convenient ? |