|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.bind.helpers.AbstractUnmarshallerImpl
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl
public final class UnmarshallerImpl
Default Unmarshaller implementation.
This class can be extended by the generated code to provide type-safe unmarshall methods.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.xml.bind.Unmarshaller |
---|
Unmarshaller.Listener |
Field Summary | |
---|---|
protected JAXBContextImpl |
context
Owning JAXBContext |
UnmarshallingContext |
coordinator
|
static String |
FACTORY
|
Fields inherited from class javax.xml.bind.helpers.AbstractUnmarshallerImpl |
---|
validating |
Constructor Summary | |
---|---|
UnmarshallerImpl(JAXBContextImpl context,
AssociationMap assoc)
|
Methods inherited from class javax.xml.bind.helpers.AbstractUnmarshallerImpl |
---|
getXMLReader, setAdapter, setEventHandler, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final JAXBContextImpl context
JAXBContext
public final UnmarshallingContext coordinator
public static final String FACTORY
Constructor Detail |
---|
public UnmarshallerImpl(JAXBContextImpl context, AssociationMap assoc)
Method Detail |
---|
public UnmarshallerHandler getUnmarshallerHandler()
getUnmarshallerHandler
in interface Unmarshaller
public final XmlVisitor createUnmarshallerHandler(InfosetScanner scanner, boolean inplace, JaxBeanInfo expectedType)
UnmarshallerHandler
and ValidationEventHandler
. All the parsing errors
should be reported to this error handler for the unmarshalling
process to work correctly.
Also, returned handler expects all the XML names to be interned.public static boolean needsInterning(XMLReader reader)
protected Object unmarshal(XMLReader reader, InputSource source) throws JAXBException
unmarshal
in class AbstractUnmarshallerImpl
JAXBException
protected <T> JAXBElement<T> unmarshal(XMLReader reader, InputSource source, Class<T> expectedType) throws JAXBException
JAXBException
public <T> JAXBElement<T> unmarshal(Source source, Class<T> expectedType) throws JAXBException
unmarshal
in interface Unmarshaller
unmarshal
in class AbstractUnmarshallerImpl
JAXBException
public Object unmarshal0(Source source, JaxBeanInfo expectedType) throws JAXBException
JAXBException
public final ValidationEventHandler getEventHandler()
getEventHandler
in interface Unmarshaller
getEventHandler
in class AbstractUnmarshallerImpl
public final boolean hasEventHandler()
The default handler ignores any errors, and for that this method returns false.
public <T> JAXBElement<T> unmarshal(Node node, Class<T> expectedType) throws JAXBException
unmarshal
in interface Unmarshaller
unmarshal
in class AbstractUnmarshallerImpl
JAXBException
public final Object unmarshal(Node node) throws JAXBException
unmarshal
in interface Unmarshaller
JAXBException
@Deprecated public final Object unmarshal(SAXSource source) throws JAXBException
JAXBException
public final Object unmarshal0(Node node, JaxBeanInfo expectedType) throws JAXBException
JAXBException
public Object unmarshal(javax.xml.stream.XMLStreamReader reader) throws JAXBException
unmarshal
in interface Unmarshaller
unmarshal
in class AbstractUnmarshallerImpl
JAXBException
public <T> JAXBElement<T> unmarshal(javax.xml.stream.XMLStreamReader reader, Class<T> expectedType) throws JAXBException
unmarshal
in interface Unmarshaller
unmarshal
in class AbstractUnmarshallerImpl
JAXBException
public Object unmarshal0(javax.xml.stream.XMLStreamReader reader, JaxBeanInfo expectedType) throws JAXBException
JAXBException
public <T> JAXBElement<T> unmarshal(javax.xml.stream.XMLEventReader reader, Class<T> expectedType) throws JAXBException
unmarshal
in interface Unmarshaller
unmarshal
in class AbstractUnmarshallerImpl
JAXBException
public Object unmarshal(javax.xml.stream.XMLEventReader reader) throws JAXBException
unmarshal
in interface Unmarshaller
unmarshal
in class AbstractUnmarshallerImpl
JAXBException
public Object unmarshal0(InputStream input, JaxBeanInfo expectedType) throws JAXBException
JAXBException
public Object getProperty(String name) throws PropertyException
getProperty
in interface Unmarshaller
getProperty
in class AbstractUnmarshallerImpl
PropertyException
public void setProperty(String name, Object value) throws PropertyException
setProperty
in interface Unmarshaller
setProperty
in class AbstractUnmarshallerImpl
PropertyException
public void setSchema(Schema schema)
setSchema
in interface Unmarshaller
setSchema
in class AbstractUnmarshallerImpl
public Schema getSchema()
getSchema
in interface Unmarshaller
getSchema
in class AbstractUnmarshallerImpl
public AttachmentUnmarshaller getAttachmentUnmarshaller()
getAttachmentUnmarshaller
in interface Unmarshaller
getAttachmentUnmarshaller
in class AbstractUnmarshallerImpl
public void setAttachmentUnmarshaller(AttachmentUnmarshaller au)
setAttachmentUnmarshaller
in interface Unmarshaller
setAttachmentUnmarshaller
in class AbstractUnmarshallerImpl
public boolean isValidating()
isValidating
in interface Unmarshaller
isValidating
in class AbstractUnmarshallerImpl
public void setValidating(boolean validating)
setValidating
in interface Unmarshaller
setValidating
in class AbstractUnmarshallerImpl
public <A extends XmlAdapter> void setAdapter(Class<A> type, A adapter)
setAdapter
in interface Unmarshaller
setAdapter
in class AbstractUnmarshallerImpl
public <A extends XmlAdapter> A getAdapter(Class<A> type)
getAdapter
in interface Unmarshaller
getAdapter
in class AbstractUnmarshallerImpl
public UnmarshalException createUnmarshalException(SAXException e)
createUnmarshalException
in class AbstractUnmarshallerImpl
public boolean handleEvent(ValidationEvent event)
Unmarshaller
.
handleEvent
in interface ValidationEventHandler
public <T> JaxBeanInfo<T> getBeanInfo(Class<T> clazz) throws JAXBException
JAXBException
public Unmarshaller.Listener getListener()
getListener
in interface Unmarshaller
getListener
in class AbstractUnmarshallerImpl
public void setListener(Unmarshaller.Listener listener)
setListener
in interface Unmarshaller
setListener
in class AbstractUnmarshallerImpl
public UnmarshallingContext getContext()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |