EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.jaxb
Class JAXBMarshaller

java.lang.Object
  extended by 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:

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

Field Summary
static java.lang.String XML_JAVATYPE_ADAPTERS
           
 
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.
 
Method Summary
 XmlAdapter getAdapter(java.lang.Class javaClass)
           
 AttachmentMarshaller getAttachmentMarshaller()
           
 ValidationEventHandler getEventHandler()
           
 Marshaller.Listener getListener()
           
 org.w3c.dom.Node getNode(java.lang.Object object)
           
 java.lang.Object getProperty(java.lang.String key)
           
 javax.xml.validation.Schema getSchema()
           
 void marshal(java.lang.Object object, org.xml.sax.ContentHandler contentHandler)
           
 void marshal(java.lang.Object object, org.w3c.dom.Node node)
           
 void marshal(java.lang.Object object, java.io.OutputStream outputStream)
           
 void marshal(java.lang.Object object, javax.xml.transform.Result result)
           
 void marshal(java.lang.Object object, java.io.Writer writer)
           
 void setAdapter(java.lang.Class javaClass, XmlAdapter adapter)
           
 void setAdapter(XmlAdapter adapter)
           
 void setAttachmentMarshaller(AttachmentMarshaller attachmentMarshaller)
           
 void setEventHandler(ValidationEventHandler newValidationEventHandler)
           
 void setListener(Marshaller.Listener listener)
           
 void setMarshalCallbacks(java.util.HashMap callbacks)
           
 void setProperty(java.lang.String key, java.lang.Object value)
           
 void setSchema(javax.xml.validation.Schema schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_JAVATYPE_ADAPTERS

public static final java.lang.String XML_JAVATYPE_ADAPTERS
See Also:
Constant Field Values
Constructor Detail

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 -
Method Detail

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)

EclipseLink 1.0_1.0M2 API Reference - Incubation