public class JaxbSerializer extends ExtSerializer
| Modifier and Type | Field and Description |
|---|---|
static String |
JAXB_TAG
The tag name for serializing JAXB objects.
|
| Constructor and Description |
|---|
JaxbSerializer(javax.xml.bind.JAXBContext pContext)
Creates a new instance with the given context.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getTagName()
Returns the unqualied tag name.
|
protected void |
serialize(ContentHandler pHandler,
Object pObject)
Performs the actual serialization.
|
writepublic static final String JAXB_TAG
public JaxbSerializer(javax.xml.bind.JAXBContext pContext)
pContext - The context being used for creating marshallers.protected String getTagName()
ExtSerializergetTagName in class ExtSerializerprotected void serialize(ContentHandler pHandler, Object pObject) throws SAXException
ExtSerializerserialize in class ExtSerializerSAXExceptionCopyright © 2001-2015 The Apache Software Foundation. All Rights Reserved.