public class NameAdapter extends XmlAdapter<XpnName,Name>
XmlAdapter
that allows the Name class to be serialized.
The original implementation of the Name
class was concrete and had
no subclasses. The XML serialization of a Name
used to look like this:
<name>
<given>John</given>
<family>Doe</family>
</name>
When the Name
class was made abstract, the XML above could no
longer be serialized. This adapter allows the XML shown above to be
serialized without change.Constructor and Description |
---|
NameAdapter() |
Copyright © 2018 Open eHealth Foundation. All rights reserved.