|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.sdo.helper.delegates.SDOXMLHelperDelegate org.eclipse.persistence.sdo.helper.jaxb.JAXBXMLHelper
public class JAXBXMLHelper
This implementation of commonj.sdo.helper.XMLHelper is responsible for ensuring that newly unmarshalled DataObjects are assigned a JAXB aware value store.
XMLHelper xmlHelper = jaxbHelperContext.getXMLHelper(); XMLDocument xmlDocument = xmlHelper.load(xml); DataObject customerDO = xmlDocument.getRootObject(); Customer customer = jaxbHelperContext.unwrap(customerDO);
Field Summary |
---|
Fields inherited from interface commonj.sdo.helper.XMLHelper |
---|
INSTANCE |
Constructor Summary | |
---|---|
JAXBXMLHelper(HelperContext helperContext)
Create a new instance of JAXBXMLHelper |
|
JAXBXMLHelper(HelperContext helperContext,
java.lang.ClassLoader classLoader)
Create a new instance of JAXBXMLHelper |
Method Summary | |
---|---|
JAXBHelperContext |
getHelperContext()
INTERNAL: Return the helperContext that this instance is associated with. |
XMLDocument |
load(org.xml.sax.InputSource inputSource,
java.lang.String locationURI,
java.lang.Object options)
Creates and returns an XMLDocument from the inputSource. |
XMLDocument |
load(java.io.InputStream inputStream)
Creates and returns an XMLDocument from the inputStream. |
XMLDocument |
load(java.io.InputStream inputStream,
java.lang.String locationURI,
java.lang.Object options)
Creates and returns an XMLDocument from the inputStream. |
XMLDocument |
load(java.io.Reader inputReader,
java.lang.String locationURI,
java.lang.Object options)
Creates and returns an XMLDocument from the inputReader. |
XMLDocument |
load(javax.xml.transform.Source source,
java.lang.String locationURI,
java.lang.Object options)
Creates and returns an XMLDocument from the inputSource. |
XMLDocument |
load(java.lang.String inputString)
Creates and returns an XMLDocument from the input String. |
Methods inherited from class org.eclipse.persistence.sdo.helper.delegates.SDOXMLHelperDelegate |
---|
addDescriptors, createDocument, getLoader, getTopLinkProject, getXmlContext, getXmlConversionManager, getXmlMarshaller, getXmlUnmarshaller, initializeDescriptor, reset, save, save, save, save, save, setHelperContext, setLoader, setTimeZone, setTimeZoneQualified, setTopLinkProject, setXmlContext, setXmlMarshaller, setXmlUnmarshaller |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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).Method Detail |
---|
public JAXBHelperContext getHelperContext()
SDOXMLHelper
getHelperContext
in interface SDOXMLHelper
getHelperContext
in class SDOXMLHelperDelegate
public XMLDocument load(org.xml.sax.InputSource inputSource, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
SDOXMLHelperDelegate
load
in interface SDOXMLHelper
load
in class SDOXMLHelperDelegate
inputSource
- specifies the InputSource to read fromlocationURI
- specifies the URI of the document for relative schema locationsoptions
- implementation-specific options.
java.io.IOException
- for stream exceptions.public XMLDocument load(java.io.InputStream inputStream, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
SDOXMLHelperDelegate
load
in interface XMLHelper
load
in class SDOXMLHelperDelegate
inputStream
- specifies the InputStream to read fromlocationURI
- specifies the URI of the document for relative schema locationsoptions
- implementation-specific options.
java.io.IOException
- for stream exceptions.public XMLDocument load(java.io.InputStream inputStream) throws java.io.IOException
SDOXMLHelperDelegate
load
in interface XMLHelper
load
in class SDOXMLHelperDelegate
inputStream
- specifies the InputStream to read from
java.io.IOException
- for stream exceptions.public XMLDocument load(java.io.Reader inputReader, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
SDOXMLHelperDelegate
load
in interface XMLHelper
load
in class SDOXMLHelperDelegate
inputReader
- specifies the Reader to read fromlocationURI
- specifies the URI of the document for relative schema locationsoptions
- implementation-specific options.
java.io.IOException
- for stream exceptions.public XMLDocument load(javax.xml.transform.Source source, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
XMLHelper
load
in interface XMLHelper
load
in class SDOXMLHelperDelegate
source
- specifies the Source to read fromlocationURI
- specifies the URI of the document for relative schema locationsoptions
- implementation-specific options.
java.io.IOException
- for stream exceptions.public XMLDocument load(java.lang.String inputString)
SDOXMLHelperDelegate
load
in interface XMLHelper
load
in class SDOXMLHelperDelegate
inputString
- specifies the String to read from
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |