org.eclipse.persistence.jaxb
Class JAXBUnmarshaller

java.lang.Object
  extended by org.eclipse.persistence.jaxb.JAXBUnmarshaller
All Implemented Interfaces:
Unmarshaller

public class JAXBUnmarshaller
extends Object
implements Unmarshaller

INTERNAL:

Purpose:To Provide an implementation of the JAXB 2.0 Unmarshaller Interface

Responsibilities:

This implementation of the JAXB 2.0 Unmarshaller interface provides the required functionality by acting as a thin wrapper on the existing XMLMarshaller API.

Since:
Oracle TopLink 11.1.1.0.0
Author:
mmacivor
See Also:
Unmarshaller, XMLUnmarshaller

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.xml.bind.Unmarshaller
Unmarshaller.Listener
 
Field Summary
static String STAX_SOURCE_CLASS_NAME
           
static String XML_JAVATYPE_ADAPTERS
           
 
Constructor Summary
JAXBUnmarshaller(XMLUnmarshaller newXMLUnmarshaller)
           
 
Method Summary
 XmlAdapter getAdapter(Class javaClass)
           
 AttachmentUnmarshaller getAttachmentUnmarshaller()
           
 ValidationEventHandler getEventHandler()
           
 Unmarshaller.Listener getListener()
           
 Object getProperty(String key)
           
 Schema getSchema()
           
 UnmarshallerHandler getUnmarshallerHandler()
           
 XMLUnmarshaller getXMLUnmarshaller()
           
 boolean isValidating()
           
 void setAdapter(Class javaClass, XmlAdapter adapter)
           
 void setAdapter(XmlAdapter adapter)
           
 void setAttachmentUnmarshaller(AttachmentUnmarshaller unmarshaller)
           
 void setEventHandler(ValidationEventHandler newValidationEventHandler)
           
 void setJaxbContext(JAXBContext jaxbContext)
           
 void setListener(Unmarshaller.Listener listener)
           
 void setProperty(String key, Object value)
           
 void setSchema(Schema schema)
           
 void setUnmarshalCallbacks(HashMap callbacks)
           
 void setValidating(boolean validate)
           
 Object unmarshal(File file)
           
 Object unmarshal(InputSource inputSource)
           
 Object unmarshal(InputStream inputStream)
           
 Object unmarshal(Node node)
           
 JAXBElement unmarshal(Node node, Class javaClass)
           
 Object unmarshal(Reader reader)
           
 Object unmarshal(Source source)
           
 JAXBElement unmarshal(Source source, Class javaClass)
           
 JAXBElement unmarshal(Source source, Type type)
           
 JAXBElement unmarshal(Source source, TypeMappingInfo type)
          Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.
 Object unmarshal(URL url)
           
 Object unmarshal(XMLEventReader eventReader)
           
 JAXBElement unmarshal(XMLEventReader eventReader, Class javaClass)
           
 JAXBElement unmarshal(XMLEventReader eventReader, Type type)
           
 JAXBElement unmarshal(XMLEventReader eventReader, TypeMappingInfo type)
          Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.
 Object unmarshal(XMLStreamReader streamReader)
           
 JAXBElement unmarshal(XMLStreamReader streamReader, Class javaClass)
           
 JAXBElement unmarshal(XMLStreamReader streamReader, Type type)
           
 JAXBElement unmarshal(XMLStreamReader streamReader, TypeMappingInfo type)
          Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_JAVATYPE_ADAPTERS

public static final String XML_JAVATYPE_ADAPTERS
See Also:
Constant Field Values

STAX_SOURCE_CLASS_NAME

public static final String STAX_SOURCE_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

JAXBUnmarshaller

public JAXBUnmarshaller(XMLUnmarshaller newXMLUnmarshaller)
Method Detail

getXMLUnmarshaller

public XMLUnmarshaller getXMLUnmarshaller()

unmarshal

public Object unmarshal(File file)
                 throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public Object unmarshal(InputStream inputStream)
                 throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public Object unmarshal(URL url)
                 throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public Object unmarshal(InputSource inputSource)
                 throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public Object unmarshal(Reader reader)
                 throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public Object unmarshal(Node node)
                 throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(Node node,
                             Class javaClass)
                      throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public Object unmarshal(Source source)
                 throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(Source source,
                             Class javaClass)
                      throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(Source source,
                             Type type)
                      throws JAXBException
Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(Source source,
                             TypeMappingInfo type)
                      throws JAXBException
Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.

Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(XMLStreamReader streamReader,
                             Class javaClass)
                      throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(XMLStreamReader streamReader,
                             Type type)
                      throws JAXBException
Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(XMLStreamReader streamReader,
                             TypeMappingInfo type)
                      throws JAXBException
Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.

Throws:
JAXBException

unmarshal

public Object unmarshal(XMLStreamReader streamReader)
                 throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(XMLEventReader eventReader,
                             Class javaClass)
                      throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(XMLEventReader eventReader,
                             Type type)
                      throws JAXBException
Throws:
JAXBException

unmarshal

public JAXBElement unmarshal(XMLEventReader eventReader,
                             TypeMappingInfo type)
                      throws JAXBException
Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.

Throws:
JAXBException

unmarshal

public Object unmarshal(XMLEventReader eventReader)
                 throws JAXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JAXBException

getUnmarshallerHandler

public UnmarshallerHandler getUnmarshallerHandler()
Specified by:
getUnmarshallerHandler in interface Unmarshaller

setValidating

public void setValidating(boolean validate)
                   throws JAXBException
Specified by:
setValidating in interface Unmarshaller
Throws:
JAXBException

isValidating

public boolean isValidating()
                     throws JAXBException
Specified by:
isValidating in interface Unmarshaller
Throws:
JAXBException

setEventHandler

public void setEventHandler(ValidationEventHandler newValidationEventHandler)
                     throws JAXBException
Specified by:
setEventHandler in interface Unmarshaller
Throws:
JAXBException

getEventHandler

public ValidationEventHandler getEventHandler()
                                       throws JAXBException
Specified by:
getEventHandler in interface Unmarshaller
Throws:
JAXBException

setProperty

public void setProperty(String key,
                        Object value)
                 throws PropertyException
Specified by:
setProperty in interface Unmarshaller
Throws:
PropertyException

getProperty

public Object getProperty(String key)
                   throws PropertyException
Specified by:
getProperty in interface Unmarshaller
Throws:
PropertyException

getListener

public Unmarshaller.Listener getListener()
Specified by:
getListener in interface Unmarshaller

setListener

public void setListener(Unmarshaller.Listener listener)
Specified by:
setListener in interface Unmarshaller

getAdapter

public XmlAdapter getAdapter(Class javaClass)
Specified by:
getAdapter in interface Unmarshaller

setAdapter

public void setAdapter(Class javaClass,
                       XmlAdapter adapter)
Specified by:
setAdapter in interface Unmarshaller

setAdapter

public void setAdapter(XmlAdapter adapter)
Specified by:
setAdapter in interface Unmarshaller

setSchema

public void setSchema(Schema schema)
Specified by:
setSchema in interface Unmarshaller

getSchema

public Schema getSchema()
Specified by:
getSchema in interface Unmarshaller

getAttachmentUnmarshaller

public AttachmentUnmarshaller getAttachmentUnmarshaller()
Specified by:
getAttachmentUnmarshaller in interface Unmarshaller

setAttachmentUnmarshaller

public void setAttachmentUnmarshaller(AttachmentUnmarshaller unmarshaller)
Specified by:
setAttachmentUnmarshaller in interface Unmarshaller

setUnmarshalCallbacks

public void setUnmarshalCallbacks(HashMap callbacks)

setJaxbContext

public void setJaxbContext(JAXBContext jaxbContext)