Details
-
Type: New Feature
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.2.2
-
Component/s: None
-
Labels:None
Description
The Mapper interface has a method shouldSerializeMember() which can be used to override the default choice as to whether to serialise a member field or not.
It would be useful to implement the reverse; i.e allow some serialised members to be ignored during unmarshalling.
Since version 1.2.2 XStram is calling shouldSerializeMember also at deserialization time to enable omitField(...) for missing elements. Give it a try.