Class XMLSerializer
java.lang.Object
org.eclipse.persistence.sessions.serializers.AbstractSerializer
org.eclipse.persistence.sessions.serializers.XMLSerializer
- All Implemented Interfaces:
Serializable
,Cloneable
,Serializer
- Direct Known Subclasses:
JSONSerializer
Uses JAXB to convert an object to XML.
- See Also:
- Author:
- James Sutherland
-
Constructor Summary
ConstructorDescriptionXMLSerializer
(jakarta.xml.bind.JAXBContext context) XMLSerializer
(String packageName) -
Method Summary
-
Constructor Details
-
XMLSerializer
public XMLSerializer() -
XMLSerializer
-
XMLSerializer
public XMLSerializer(jakarta.xml.bind.JAXBContext context)
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceSerializer
- Overrides:
initialize
in classAbstractSerializer
-
serialize
-
deserialize
-
getType
- Specified by:
getType
in interfaceSerializer
- Overrides:
getType
in classAbstractSerializer
-
toString
- Overrides:
toString
in classAbstractSerializer
-