Package org.apache.xmlrpc.jaxb
Class JaxbSerializer
- java.lang.Object
-
- org.apache.xmlrpc.serializer.ExtSerializer
-
- org.apache.xmlrpc.jaxb.JaxbSerializer
-
- All Implemented Interfaces:
TypeSerializer
public class JaxbSerializer extends ExtSerializer
A serializer for JAXB objects.
-
-
Constructor Summary
Constructors Constructor Description JaxbSerializer(javax.xml.bind.JAXBContext pContext)Creates a new instance with the given context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetTagName()Returns the unqualied tag name.protected voidserialize(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject)Performs the actual serialization.-
Methods inherited from class org.apache.xmlrpc.serializer.ExtSerializer
write
-
-
-
-
Field Detail
-
context
private final javax.xml.bind.JAXBContext context
-
JAXB_TAG
public static final java.lang.String JAXB_TAG
The tag name for serializing JAXB objects.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTagName
protected java.lang.String getTagName()
Description copied from class:ExtSerializerReturns the unqualied tag name.- Specified by:
getTagNamein classExtSerializer
-
serialize
protected void serialize(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXExceptionDescription copied from class:ExtSerializerPerforms the actual serialization.- Specified by:
serializein classExtSerializer- Throws:
org.xml.sax.SAXException
-
-