javax.xml.bind.helpers
Class AbstractUnmarshallerImpl
java.lang.Object
javax.xml.bind.helpers.AbstractUnmarshallerImpl
- All Implemented Interfaces:
- Unmarshaller
public abstract class AbstractUnmarshallerImpl
- extends Object
- implements Unmarshaller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
validating
protected boolean validating
AbstractUnmarshallerImpl
public AbstractUnmarshallerImpl()
createUnmarshalException
protected UnmarshalException createUnmarshalException(SAXException e)
getXMLReader
protected XMLReader getXMLReader()
throws JAXBException
- Throws:
JAXBException
getAdapter
public <A extends XmlAdapter> A getAdapter(Class<A> type)
- Specified by:
getAdapter
in interface Unmarshaller
getAttachmentUnmarshaller
public AttachmentUnmarshaller getAttachmentUnmarshaller()
- Specified by:
getAttachmentUnmarshaller
in interface Unmarshaller
getEventHandler
public ValidationEventHandler getEventHandler()
throws JAXBException
- Specified by:
getEventHandler
in interface Unmarshaller
- Throws:
JAXBException
getListener
public Unmarshaller.Listener getListener()
- Specified by:
getListener
in interface Unmarshaller
getProperty
public Object getProperty(String name)
throws PropertyException
- Specified by:
getProperty
in interface Unmarshaller
- Throws:
PropertyException
getSchema
public Schema getSchema()
- Specified by:
getSchema
in interface Unmarshaller
isValidating
public boolean isValidating()
throws JAXBException
- Specified by:
isValidating
in interface Unmarshaller
- Throws:
JAXBException
setAdapter
public <A extends XmlAdapter> void setAdapter(Class<A> type,
A adapter)
- Specified by:
setAdapter
in interface Unmarshaller
setAdapter
public void setAdapter(XmlAdapter adapter)
- Specified by:
setAdapter
in interface Unmarshaller
setAttachmentUnmarshaller
public void setAttachmentUnmarshaller(AttachmentUnmarshaller au)
- Specified by:
setAttachmentUnmarshaller
in interface Unmarshaller
setEventHandler
public void setEventHandler(ValidationEventHandler handler)
throws JAXBException
- Specified by:
setEventHandler
in interface Unmarshaller
- Throws:
JAXBException
setListener
public void setListener(Unmarshaller.Listener listener)
- Specified by:
setListener
in interface Unmarshaller
setProperty
public void setProperty(String name,
Object value)
throws PropertyException
- Specified by:
setProperty
in interface Unmarshaller
- Throws:
PropertyException
setSchema
public void setSchema(Schema schema)
- Specified by:
setSchema
in interface Unmarshaller
setValidating
public void setValidating(boolean validating)
throws JAXBException
- Specified by:
setValidating
in interface Unmarshaller
- Throws:
JAXBException
unmarshal
public final Object unmarshal(File file)
throws JAXBException
- Specified by:
unmarshal
in interface Unmarshaller
- Throws:
JAXBException
unmarshal
public final Object unmarshal(InputSource source)
throws JAXBException
- Specified by:
unmarshal
in interface Unmarshaller
- Throws:
JAXBException
unmarshal
public final Object unmarshal(InputStream is)
throws JAXBException
- Specified by:
unmarshal
in interface Unmarshaller
- Throws:
JAXBException
unmarshal
public <T> JAXBElement<T> unmarshal(Node node,
Class<T> declaredType)
throws JAXBException
- Specified by:
unmarshal
in interface Unmarshaller
- Throws:
JAXBException
unmarshal
public final Object unmarshal(Reader reader)
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
protected abstract Object unmarshal(XMLReader xmlreader,
InputSource inputsource)
throws JAXBException
- Throws:
JAXBException
unmarshal
public <T> JAXBElement<T> unmarshal(Source source,
Class<T> declaredType)
throws JAXBException
- Specified by:
unmarshal
in interface Unmarshaller
- Throws:
JAXBException
unmarshal
public final Object unmarshal(URL url)
throws JAXBException
- Specified by:
unmarshal
in interface Unmarshaller
- Throws:
JAXBException
unmarshal
public Object unmarshal(javax.xml.stream.XMLEventReader reader)
throws JAXBException
- Specified by:
unmarshal
in interface Unmarshaller
- Throws:
JAXBException
unmarshal
public <T> JAXBElement<T> unmarshal(javax.xml.stream.XMLEventReader reader,
Class<T> declaredType)
throws JAXBException
- Specified by:
unmarshal
in interface Unmarshaller
- Throws:
JAXBException
unmarshal
public Object unmarshal(javax.xml.stream.XMLStreamReader reader)
throws JAXBException
- Specified by:
unmarshal
in interface Unmarshaller
- Throws:
JAXBException
unmarshal
public <T> JAXBElement<T> unmarshal(javax.xml.stream.XMLStreamReader reader,
Class<T> declaredType)
throws JAXBException
- Specified by:
unmarshal
in interface Unmarshaller
- Throws:
JAXBException
Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.