Package org.eclipse.persistence.jaxb
Class JAXBBinder
java.lang.Object
jakarta.xml.bind.Binder
org.eclipse.persistence.jaxb.JAXBBinder
public class JAXBBinder
extends jakarta.xml.bind.Binder
INTERNAL
Purpose: Provide a TopLink implementation of the jakarta.xml.bind.Binder interface
Responsibilities:
- Provide an implementation of Binder
- Provide a means to preserve unmapped XML Data
- See Also:
-
Binder
- Author:
- mmacivor
-
Constructor Summary
ConstructorDescriptionJAXBBinder
(JAXBContext xmlContext, XMLMarshaller marshaller, XMLUnmarshaller unmarshaller) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.bind.ValidationEventHandler
getJAXBNode
(Object obj) getProperty
(String propName) getXMLNode
(Object obj) void
void
setEventHandler
(jakarta.xml.bind.ValidationEventHandler newValidationEventHandler) void
setProperty
(String propName, Object value) void
jakarta.xml.bind.JAXBElement
updateJAXB
(Object obj)
-
Constructor Details
-
JAXBBinder
-
-
Method Details
-
marshal
- Specified by:
marshal
in classjakarta.xml.bind.Binder
- Throws:
jakarta.xml.bind.MarshalException
-
unmarshal
- Specified by:
unmarshal
in classjakarta.xml.bind.Binder
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshal
public jakarta.xml.bind.JAXBElement unmarshal(Object obj, Class javaClass) throws jakarta.xml.bind.JAXBException - Specified by:
unmarshal
in classjakarta.xml.bind.Binder
- Throws:
jakarta.xml.bind.JAXBException
-
getXMLNode
- Specified by:
getXMLNode
in classjakarta.xml.bind.Binder
-
updateXML
- Specified by:
updateXML
in classjakarta.xml.bind.Binder
-
updateXML
- Specified by:
updateXML
in classjakarta.xml.bind.Binder
-
getJAXBNode
- Specified by:
getJAXBNode
in classjakarta.xml.bind.Binder
-
updateJAXB
- Specified by:
updateJAXB
in classjakarta.xml.bind.Binder
- Throws:
jakarta.xml.bind.JAXBException
-
setSchema
- Specified by:
setSchema
in classjakarta.xml.bind.Binder
-
getSchema
- Specified by:
getSchema
in classjakarta.xml.bind.Binder
-
setEventHandler
public void setEventHandler(jakarta.xml.bind.ValidationEventHandler newValidationEventHandler) throws jakarta.xml.bind.JAXBException - Specified by:
setEventHandler
in classjakarta.xml.bind.Binder
- Throws:
jakarta.xml.bind.JAXBException
-
getEventHandler
public jakarta.xml.bind.ValidationEventHandler getEventHandler()- Specified by:
getEventHandler
in classjakarta.xml.bind.Binder
-
getProperty
- Specified by:
getProperty
in classjakarta.xml.bind.Binder
- Throws:
jakarta.xml.bind.PropertyException
-
setProperty
- Specified by:
setProperty
in classjakarta.xml.bind.Binder
- Throws:
jakarta.xml.bind.PropertyException
-
getXMLBinder
-