Class NameAdapter
A JAXB
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.- Author:
- Michael Ottati
-
Constructor Summary
-
Method Summary