org.eclipse.persistence.jaxb
Class JAXBBinder
java.lang.Object
javax.xml.bind.Binder
org.eclipse.persistence.jaxb.JAXBBinder
public class JAXBBinder
- extends Binder
INTERNAL
Purpose: Provide a TopLink implementation of the javax.xml.bind.Binder interface
Responsibilities:
- Provide an implementation of Binder
- Provide a means to preserve unmapped XML Data
- Since:
- Oracle TopLink 11.1.1.0.0
- Author:
- mmacivor
- See Also:
Binder
JAXBBinder
public JAXBBinder(XMLContext xmlContext)
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()