java.lang.Object
org.eclipse.persistence.jaxb.JAXBUnmarshaller
- All Implemented Interfaces:
Unmarshaller
INTERNAL:
Purpose:To Provide an implementation of the JAXB 2.0 Unmarshaller Interface
Responsibilities:
- Provide a JAXB wrapper on the XMLUnmarshaller API
- Perform XML to Object Conversions
This implementation of the JAXB 2.1/2.2 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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.xml.bind.Unmarshaller
Unmarshaller.Listener
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJAXBUnmarshaller
(XMLUnmarshaller newXMLUnmarshaller, JAXBContext jaxbContext) -
Method Summary
Modifier and TypeMethodDescriptiongetAdapter
(Class javaClass) Returns constraint violations stored in the underlyingJAXBBeanValidator
instance.Return this Unmarshaller's custom IDResolver.getProperty
(String key) Get a property from the JAXBMarshaller.boolean
void
setAdapter
(XmlAdapter adapter) void
setAdapter
(Class javaClass, XmlAdapter adapter) void
setAttachmentUnmarshaller
(AttachmentUnmarshaller unmarshaller) void
setEventHandler
(ValidationEventHandler newValidationEventHandler) void
setIDResolver
(IDResolver idResolver) Set this Unmarshaller's custom IDResolver.void
setListener
(Unmarshaller.Listener listener) void
setProperty
(String key, Object value) Set a property on the JAXBUnmarshaller.void
void
setUnmarshalCallbacks
(Map callbacks) void
setValidating
(boolean validate) unmarshal
(InputStream inputStream) unmarshal
(XMLEventReader eventReader) unmarshal
(XMLEventReader eventReader, Class javaClass) unmarshal
(XMLEventReader eventReader, Type type) unmarshal
(XMLEventReader eventReader, TypeMappingInfo type) Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.unmarshal
(XMLStreamReader streamReader) unmarshal
(XMLStreamReader streamReader, Class javaClass) unmarshal
(XMLStreamReader streamReader, Type type) unmarshal
(XMLStreamReader streamReader, TypeMappingInfo type) Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.unmarshal
(Source source, TypeMappingInfo type) Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.unmarshal
(InputSource inputSource)
-
Field Details
-
XML_JAVATYPE_ADAPTERS
- See Also:
-
STAX_SOURCE_CLASS_NAME
- See Also:
-
-
Constructor Details
-
JAXBUnmarshaller
-
-
Method Details
-
getXMLUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Throws:
JAXBException
-
unmarshal
Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- 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
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Throws:
JAXBException
-
unmarshal
Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
getUnmarshallerHandler
- Specified by:
getUnmarshallerHandler
in interfaceUnmarshaller
-
setValidating
- Throws:
JAXBException
-
isValidating
- Throws:
JAXBException
-
setEventHandler
- Specified by:
setEventHandler
in interfaceUnmarshaller
- Throws:
JAXBException
-
getEventHandler
- Specified by:
getEventHandler
in interfaceUnmarshaller
- Throws:
JAXBException
-
setProperty
Set a property on the JAXBUnmarshaller. Attempting to set any unsupported property will result in a jakarta.xml.bind.PropertyException.- Specified by:
setProperty
in interfaceUnmarshaller
- Throws:
PropertyException
- See Also:
-
getProperty
Get a property from the JAXBMarshaller. Attempting to get any unsupported property will result in a jakarta.xml.bind.PropertyException See Supported Properties.- Specified by:
getProperty
in interfaceUnmarshaller
- Throws:
PropertyException
- See Also:
-
getListener
- Specified by:
getListener
in interfaceUnmarshaller
-
setListener
- Specified by:
setListener
in interfaceUnmarshaller
-
getAdapter
- Specified by:
getAdapter
in interfaceUnmarshaller
-
setAdapter
- Specified by:
setAdapter
in interfaceUnmarshaller
-
setAdapter
- Specified by:
setAdapter
in interfaceUnmarshaller
-
setSchema
- Specified by:
setSchema
in interfaceUnmarshaller
-
getSchema
- Specified by:
getSchema
in interfaceUnmarshaller
-
getAttachmentUnmarshaller
- Specified by:
getAttachmentUnmarshaller
in interfaceUnmarshaller
-
setAttachmentUnmarshaller
- Specified by:
setAttachmentUnmarshaller
in interfaceUnmarshaller
-
setUnmarshalCallbacks
-
getJaxbContext
-
getIDResolver
Return this Unmarshaller's custom IDResolver.- Returns:
- the custom IDResolver, or null if one has not been specified.
- Since:
- 2.3.3
- See Also:
-
setIDResolver
Set this Unmarshaller's custom IDResolver.- Since:
- 2.3.3
- See Also:
-
getConstraintViolations
Returns constraint violations stored in the underlyingJAXBBeanValidator
instance.- Returns:
- set of constraint violations from last unmarshal
-