public class JAXBUnmarshaller extends Object implements Unmarshaller
Purpose:To Provide an implementation of the JAXB 2.0 Unmarshaller Interface
Responsibilities:
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.
Unmarshaller
,
UnmarshallerProperties
,
XMLUnmarshaller
Unmarshaller.Listener
Modifier and Type | Field and Description |
---|---|
static String |
STAX_SOURCE_CLASS_NAME |
static String |
XML_JAVATYPE_ADAPTERS |
Constructor and Description |
---|
JAXBUnmarshaller(XMLUnmarshaller newXMLUnmarshaller) |
public static final String XML_JAVATYPE_ADAPTERS
public static final String STAX_SOURCE_CLASS_NAME
public JAXBUnmarshaller(XMLUnmarshaller newXMLUnmarshaller)
public XMLUnmarshaller getXMLUnmarshaller()
public Object unmarshal(File file) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public Object unmarshal(InputStream inputStream) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public Object unmarshal(URL url) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public Object unmarshal(InputSource inputSource) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public Object unmarshal(Reader reader) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public Object unmarshal(Node node) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public JAXBElement unmarshal(Node node, Class javaClass) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public Object unmarshal(Source source) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public JAXBElement unmarshal(Source source, Class javaClass) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public JAXBElement unmarshal(Source source, Type type) throws JAXBException
JAXBException
public JAXBElement unmarshal(Source source, TypeMappingInfo type) throws JAXBException
JAXBException
public JAXBElement unmarshal(XMLStreamReader streamReader, Class javaClass) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public JAXBElement unmarshal(XMLStreamReader streamReader, Type type) throws JAXBException
JAXBException
public JAXBElement unmarshal(XMLStreamReader streamReader, TypeMappingInfo type) throws JAXBException
JAXBException
public Object unmarshal(XMLStreamReader streamReader) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public JAXBElement unmarshal(XMLEventReader eventReader, Class javaClass) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public JAXBElement unmarshal(XMLEventReader eventReader, Type type) throws JAXBException
JAXBException
public JAXBElement unmarshal(XMLEventReader eventReader, TypeMappingInfo type) throws JAXBException
JAXBException
public Object unmarshal(XMLEventReader eventReader) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public UnmarshallerHandler getUnmarshallerHandler()
getUnmarshallerHandler
in interface Unmarshaller
public void setValidating(boolean validate) throws JAXBException
setValidating
in interface Unmarshaller
JAXBException
public boolean isValidating() throws JAXBException
isValidating
in interface Unmarshaller
JAXBException
public void setEventHandler(ValidationEventHandler newValidationEventHandler) throws JAXBException
setEventHandler
in interface Unmarshaller
JAXBException
public ValidationEventHandler getEventHandler() throws JAXBException
getEventHandler
in interface Unmarshaller
JAXBException
public void setProperty(String key, Object value) throws PropertyException
setProperty
in interface Unmarshaller
PropertyException
UnmarshallerProperties
public Object getProperty(String key) throws PropertyException
getProperty
in interface Unmarshaller
PropertyException
UnmarshallerProperties
public Unmarshaller.Listener getListener()
getListener
in interface Unmarshaller
public void setListener(Unmarshaller.Listener listener)
setListener
in interface Unmarshaller
public XmlAdapter getAdapter(Class javaClass)
getAdapter
in interface Unmarshaller
public void setAdapter(Class javaClass, XmlAdapter adapter)
setAdapter
in interface Unmarshaller
public void setAdapter(XmlAdapter adapter)
setAdapter
in interface Unmarshaller
public void setSchema(Schema schema)
setSchema
in interface Unmarshaller
public Schema getSchema()
getSchema
in interface Unmarshaller
public AttachmentUnmarshaller getAttachmentUnmarshaller()
getAttachmentUnmarshaller
in interface Unmarshaller
public void setAttachmentUnmarshaller(AttachmentUnmarshaller unmarshaller)
setAttachmentUnmarshaller
in interface Unmarshaller
public void setUnmarshalCallbacks(HashMap callbacks)
public JAXBContext getJaxbContext()
public void setJaxbContext(JAXBContext jaxbContext)
public IDResolver getIDResolver()
IDResolver
public void setIDResolver(IDResolver idResolver)
IDResolver