java - XML Annotation for Derived Value -


i know @xmljavatypeadapter allows me change list of xml object map.

may know if possible compute value during xml unmarshalling?

for example date of birth coming in.

and have age field. wish compute age field when xml unmarshalling.

an xmladapter used time representation in object differs xml representation. xmladapter gives place insert custom logic. sounds perfect fit use case.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -