public abstract class AbstractUnmarshallerImpl extends Object implements Unmarshaller
Unmarshaller.Listener
Modifier and Type | Field and Description |
---|---|
protected boolean |
validating |
Constructor and Description |
---|
AbstractUnmarshallerImpl() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUnmarshallerHandler, unmarshal
protected UnmarshalException createUnmarshalException(SAXException e)
protected XMLReader getXMLReader() throws JAXBException
JAXBException
public <A extends XmlAdapter> A getAdapter(Class<A> type)
getAdapter
in interface Unmarshaller
public AttachmentUnmarshaller getAttachmentUnmarshaller()
getAttachmentUnmarshaller
in interface Unmarshaller
public ValidationEventHandler getEventHandler() throws JAXBException
getEventHandler
in interface Unmarshaller
JAXBException
public Unmarshaller.Listener getListener()
getListener
in interface Unmarshaller
public Object getProperty(String name) throws PropertyException
getProperty
in interface Unmarshaller
PropertyException
public Schema getSchema()
getSchema
in interface Unmarshaller
public boolean isValidating() throws JAXBException
isValidating
in interface Unmarshaller
JAXBException
public <A extends XmlAdapter> void setAdapter(Class<A> type, A adapter)
setAdapter
in interface Unmarshaller
public void setAdapter(XmlAdapter adapter)
setAdapter
in interface Unmarshaller
public void setAttachmentUnmarshaller(AttachmentUnmarshaller au)
setAttachmentUnmarshaller
in interface Unmarshaller
public void setEventHandler(ValidationEventHandler handler) throws JAXBException
setEventHandler
in interface Unmarshaller
JAXBException
public void setListener(Unmarshaller.Listener listener)
setListener
in interface Unmarshaller
public void setProperty(String name, Object value) throws PropertyException
setProperty
in interface Unmarshaller
PropertyException
public void setSchema(Schema schema)
setSchema
in interface Unmarshaller
public void setValidating(boolean validating) throws JAXBException
setValidating
in interface Unmarshaller
JAXBException
public final Object unmarshal(File file) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public final Object unmarshal(InputSource source) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public final Object unmarshal(InputStream is) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public <T> JAXBElement<T> unmarshal(Node node, Class<T> declaredType) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public final Object unmarshal(Reader reader) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public Object unmarshal(Source source) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
protected abstract Object unmarshal(XMLReader xmlreader, InputSource inputsource) throws JAXBException
JAXBException
public <T> JAXBElement<T> unmarshal(Source source, Class<T> declaredType) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public final Object unmarshal(URL url) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public Object unmarshal(javax.xml.stream.XMLEventReader reader) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public <T> JAXBElement<T> unmarshal(javax.xml.stream.XMLEventReader reader, Class<T> declaredType) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public Object unmarshal(javax.xml.stream.XMLStreamReader reader) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
public <T> JAXBElement<T> unmarshal(javax.xml.stream.XMLStreamReader reader, Class<T> declaredType) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
Copyright © 2013. All Rights Reserved.