org.eclipse.persistence.jaxb
Class JAXBBinder

java.lang.Object
  extended by javax.xml.bind.Binder
      extended by org.eclipse.persistence.jaxb.JAXBBinder

public class JAXBBinder
extends Binder

INTERNAL

Purpose: Provide a TopLink implementation of the javax.xml.bind.Binder interface

Responsibilities:

Since:
Oracle TopLink 11.1.1.0.0
Author:
mmacivor
See Also:
Binder

Constructor Summary
JAXBBinder(XMLContext xmlContext)
           
 
Method Summary
 ValidationEventHandler getEventHandler()
           
 Object getJAXBNode(Object obj)
           
 Object getProperty(String propName)
           
 Schema getSchema()
           
 XMLBinder getXMLBinder()
           
 Object getXMLNode(Object obj)
           
 void marshal(Object obj, Object xmlNode)
           
 void setEventHandler(ValidationEventHandler handler)
           
 void setProperty(String propName, Object value)
           
 void setSchema(Schema schema)
           
 Object unmarshal(Object obj)
           
 JAXBElement unmarshal(Object obj, Class javaClass)
           
 Object updateJAXB(Object obj)
           
 Object updateXML(Object obj)
           
 Object updateXML(Object obj, Object xmlNode)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBBinder

public JAXBBinder(XMLContext xmlContext)
Method Detail

marshal

public void marshal(Object obj,
                    Object xmlNode)
             throws MarshalException
Specified by:
marshal in class Binder
Throws:
MarshalException

unmarshal

public Object unmarshal(Object obj)
                 throws JAXBException
Specified by:
unmarshal in class Binder
Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(Object obj,
                             Class javaClass)
                      throws JAXBException
Specified by:
unmarshal in class Binder
Throws:
JAXBException

getXMLNode

public Object getXMLNode(Object obj)
Specified by:
getXMLNode in class Binder

updateXML

public Object updateXML(Object obj)
Specified by:
updateXML in class Binder

updateXML

public Object updateXML(Object obj,
                        Object xmlNode)
Specified by:
updateXML in class Binder

getJAXBNode

public Object getJAXBNode(Object obj)
Specified by:
getJAXBNode in class Binder

updateJAXB

public Object updateJAXB(Object obj)
                  throws JAXBException
Specified by:
updateJAXB in class Binder
Throws:
JAXBException

setSchema

public void setSchema(Schema schema)
Specified by:
setSchema in class Binder

getSchema

public Schema getSchema()
Specified by:
getSchema in class Binder

setEventHandler

public void setEventHandler(ValidationEventHandler handler)
Specified by:
setEventHandler in class Binder

getEventHandler

public ValidationEventHandler getEventHandler()
Specified by:
getEventHandler in class Binder

getProperty

public Object getProperty(String propName)
                   throws PropertyException
Specified by:
getProperty in class Binder
Throws:
PropertyException

setProperty

public void setProperty(String propName,
                        Object value)
                 throws PropertyException
Specified by:
setProperty in class Binder
Throws:
PropertyException

getXMLBinder

public XMLBinder getXMLBinder()