public class JAXBXMLHelper extends SDOXMLHelperDelegate
XMLHelper xmlHelper = jaxbHelperContext.getXMLHelper(); XMLDocument xmlDocument = xmlHelper.load(xml); DataObject customerDO = xmlDocument.getRootObject(); Customer customer = jaxbHelperContext.unwrap(customerDO);
Constructor and Description |
---|
JAXBXMLHelper(HelperContext helperContext)
Create a new instance of JAXBXMLHelper
|
JAXBXMLHelper(HelperContext helperContext,
java.lang.ClassLoader classLoader)
Create a new instance of JAXBXMLHelper
|
Modifier and Type | Method and Description |
---|---|
JAXBHelperContext |
getHelperContext()
INTERNAL:
Return the helperContext that this instance is associated with.
|
addDescriptors, createDocument, getLoader, getTopLinkProject, getXmlContext, getXmlConversionManager, getXmlMarshaller, getXmlUnmarshaller, initializeDescriptor, load, load, load, load, load, load, reset, save, save, save, save, save, serialize, setHelperContext, setLoader, setTimeZone, setTimeZoneQualified, setTopLinkProject, setXmlContext, setXmlMarshaller, setXmlUnmarshaller
public JAXBXMLHelper(HelperContext helperContext)
helperContext
- - The HelperContext used to get this XMLHelper.public JAXBXMLHelper(HelperContext helperContext, java.lang.ClassLoader classLoader)
helperContext
- - The HelperContext used to get this XMLHelper.classLoader
- - The ClassLoader containing the generated SDO classes/interfaces (if any).public JAXBHelperContext getHelperContext()
SDOXMLHelper
getHelperContext
in interface SDOXMLHelper
getHelperContext
in class SDOXMLHelperDelegate