org.eclipse.persistence.jaxb
Class JAXBMarshaller
java.lang.Object
org.eclipse.persistence.jaxb.JAXBMarshaller
public class JAXBMarshaller
- extends java.lang.Object
INTERNAL:
Purpose:To Provide an implementation of the JAXB 2.0 Marshaller Interface
Responsibilities:
- Provide a JAXB wrapper on the XMLMarshaller API
- Perform Object to XML Conversions
This implementation of the JAXB 2.0 Marshaller interface provides the required functionality
by acting as a thin wrapper on the existing XMLMarshaller API.
- See Also:
javax.xml.bind.Marshaller
,
XMLMarshaller
- Author:
- mmacivor
- Since:
- Oracle TopLink 11.1.1.0.0
Constructor Summary |
JAXBMarshaller(XMLMarshaller newXMLMarshaller,
JAXBIntrospector newIntrospector)
This constructor initializes various settings on the XML marshaller, and
stores the provided JAXBIntrospector instance for usage in marshal()
calls. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_JAVATYPE_ADAPTERS
public static final java.lang.String XML_JAVATYPE_ADAPTERS
- See Also:
- Constant Field Values
JAXBMarshaller
public JAXBMarshaller(XMLMarshaller newXMLMarshaller,
JAXBIntrospector newIntrospector)
- This constructor initializes various settings on the XML marshaller, and
stores the provided JAXBIntrospector instance for usage in marshal()
calls.
- Parameters:
newXMLMarshaller
- newIntrospector
-
getAdapter
public XmlAdapter getAdapter(java.lang.Class javaClass)
getAttachmentMarshaller
public AttachmentMarshaller getAttachmentMarshaller()
getEventHandler
public ValidationEventHandler getEventHandler()
throws JAXBException
- Throws:
JAXBException
getListener
public Marshaller.Listener getListener()
getNode
public org.w3c.dom.Node getNode(java.lang.Object object)
throws JAXBException
- Throws:
JAXBException
getProperty
public java.lang.Object getProperty(java.lang.String key)
throws PropertyException
- Throws:
PropertyException
getSchema
public javax.xml.validation.Schema getSchema()
marshal
public void marshal(java.lang.Object object,
org.xml.sax.ContentHandler contentHandler)
throws JAXBException
- Throws:
JAXBException
marshal
public void marshal(java.lang.Object object,
org.w3c.dom.Node node)
throws JAXBException
- Throws:
JAXBException
marshal
public void marshal(java.lang.Object object,
java.io.OutputStream outputStream)
throws JAXBException
- Throws:
JAXBException
marshal
public void marshal(java.lang.Object object,
javax.xml.transform.Result result)
throws JAXBException
- Throws:
JAXBException
marshal
public void marshal(java.lang.Object object,
java.io.Writer writer)
throws JAXBException
- Throws:
JAXBException
setAdapter
public void setAdapter(java.lang.Class javaClass,
XmlAdapter adapter)
setAdapter
public void setAdapter(XmlAdapter adapter)
setAttachmentMarshaller
public void setAttachmentMarshaller(AttachmentMarshaller attachmentMarshaller)
setEventHandler
public void setEventHandler(ValidationEventHandler newValidationEventHandler)
throws JAXBException
- Throws:
JAXBException
setListener
public void setListener(Marshaller.Listener listener)
setMarshalCallbacks
public void setMarshalCallbacks(java.util.HashMap callbacks)
setProperty
public void setProperty(java.lang.String key,
java.lang.Object value)
throws PropertyException
- Throws:
PropertyException
setSchema
public void setSchema(javax.xml.validation.Schema schema)