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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJAXBUnmarshaller(XMLUnmarshaller newXMLUnmarshaller, JAXBContext jaxbContext) -
Method Summary
Modifier and TypeMethodDescriptiongetAdapter(Class javaClass) Returns constraint violations stored in the underlyingJAXBBeanValidatorinstance.Return this Unmarshaller's custom IDResolver.getProperty(String key) Get a property from the JAXBMarshaller.booleanvoidsetAdapter(XmlAdapter adapter) voidsetAdapter(Class javaClass, XmlAdapter adapter) voidsetAttachmentUnmarshaller(AttachmentUnmarshaller unmarshaller) voidsetEventHandler(ValidationEventHandler newValidationEventHandler) voidsetIDResolver(IDResolver idResolver) Set this Unmarshaller's custom IDResolver.voidsetListener(Unmarshaller.Listener listener) voidsetProperty(String key, Object value) Set a property on the JAXBUnmarshaller.voidvoidsetUnmarshalCallbacks(Map callbacks) voidsetValidating(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:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Throws:
JAXBException
-
unmarshal
Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin 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:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Throws:
JAXBException
-
unmarshal
Unmarshal the object based on the binding metadata associated with the TypeMappingInfo.- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
getUnmarshallerHandler
- Specified by:
getUnmarshallerHandlerin interfaceUnmarshaller
-
setValidating
- Throws:
JAXBException
-
isValidating
- Throws:
JAXBException
-
setEventHandler
- Specified by:
setEventHandlerin interfaceUnmarshaller- Throws:
JAXBException
-
getEventHandler
- Specified by:
getEventHandlerin 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:
setPropertyin 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:
getPropertyin interfaceUnmarshaller- Throws:
PropertyException- See Also:
-
getListener
- Specified by:
getListenerin interfaceUnmarshaller
-
setListener
- Specified by:
setListenerin interfaceUnmarshaller
-
getAdapter
- Specified by:
getAdapterin interfaceUnmarshaller
-
setAdapter
- Specified by:
setAdapterin interfaceUnmarshaller
-
setAdapter
- Specified by:
setAdapterin interfaceUnmarshaller
-
setSchema
- Specified by:
setSchemain interfaceUnmarshaller
-
getSchema
- Specified by:
getSchemain interfaceUnmarshaller
-
getAttachmentUnmarshaller
- Specified by:
getAttachmentUnmarshallerin interfaceUnmarshaller
-
setAttachmentUnmarshaller
- Specified by:
setAttachmentUnmarshallerin 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 underlyingJAXBBeanValidatorinstance.- Returns:
- set of constraint violations from last unmarshal
-