|
||||||||||
| 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 java.lang.String |
FACTORY
|
| Fields inherited from class javax.xml.bind.helpers.AbstractUnmarshallerImpl |
|---|
validating |
| Constructor Summary | |
|---|---|
UnmarshallerImpl(JAXBContextImpl context,
AssociationMap assoc)
|
|
| Method Summary | ||
|---|---|---|
void |
close()
Must be called from same thread which created the UnmarshallerImpl instance. |
|
UnmarshalException |
createUnmarshalException(org.xml.sax.SAXException e)
|
|
XmlVisitor |
createUnmarshallerHandler(InfosetScanner scanner,
boolean inplace,
JaxBeanInfo expectedType)
Creates and configures a new unmarshalling pipe line. |
|
protected void |
finalize()
|
|
|
getAdapter(java.lang.Class<A> type)
|
|
AttachmentUnmarshaller |
getAttachmentUnmarshaller()
|
|
|
getBeanInfo(java.lang.Class<T> clazz)
|
|
UnmarshallingContext |
getContext()
|
|
ValidationEventHandler |
getEventHandler()
|
|
Unmarshaller.Listener |
getListener()
|
|
java.lang.Object |
getProperty(java.lang.String name)
|
|
javax.xml.validation.Schema |
getSchema()
|
|
UnmarshallerHandler |
getUnmarshallerHandler()
|
|
boolean |
handleEvent(ValidationEvent event)
Default error handling behavior for Unmarshaller. |
|
boolean |
hasEventHandler()
Returns true if an event handler is installed. |
|
boolean |
isValidating()
Deprecated. since 2.0 |
|
static boolean |
needsInterning(org.xml.sax.XMLReader reader)
|
|
|
setAdapter(java.lang.Class<A> type,
A adapter)
|
|
void |
setAttachmentUnmarshaller(AttachmentUnmarshaller au)
|
|
void |
setListener(Unmarshaller.Listener listener)
|
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
|
void |
setSchema(javax.xml.validation.Schema schema)
|
|
void |
setValidating(boolean validating)
Deprecated. since 2.0 |
|
java.lang.Object |
unmarshal(org.w3c.dom.Node node)
|
|
|
unmarshal(org.w3c.dom.Node node,
java.lang.Class<T> expectedType)
|
|
java.lang.Object |
unmarshal(javax.xml.transform.sax.SAXSource source)
Deprecated. |
|
|
unmarshal(javax.xml.transform.Source source,
java.lang.Class<T> expectedType)
|
|
java.lang.Object |
unmarshal(javax.xml.stream.XMLEventReader reader)
|
|
|
unmarshal(javax.xml.stream.XMLEventReader reader,
java.lang.Class<T> expectedType)
|
|
protected java.lang.Object |
unmarshal(org.xml.sax.XMLReader reader,
org.xml.sax.InputSource source)
|
|
protected
|
unmarshal(org.xml.sax.XMLReader reader,
org.xml.sax.InputSource source,
java.lang.Class<T> expectedType)
|
|
java.lang.Object |
unmarshal(javax.xml.stream.XMLStreamReader reader)
|
|
|
unmarshal(javax.xml.stream.XMLStreamReader reader,
java.lang.Class<T> expectedType)
|
|
java.lang.Object |
unmarshal0(java.io.InputStream input,
JaxBeanInfo expectedType)
|
|
java.lang.Object |
unmarshal0(org.w3c.dom.Node node,
JaxBeanInfo expectedType)
|
|
java.lang.Object |
unmarshal0(javax.xml.transform.Source source,
JaxBeanInfo expectedType)
|
|
java.lang.Object |
unmarshal0(javax.xml.stream.XMLStreamReader reader,
JaxBeanInfo expectedType)
|
|
| 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 java.lang.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(org.xml.sax.XMLReader reader)
protected java.lang.Object unmarshal(org.xml.sax.XMLReader reader,
org.xml.sax.InputSource source)
throws JAXBException
unmarshal in class AbstractUnmarshallerImplJAXBException
protected <T> JAXBElement<T> unmarshal(org.xml.sax.XMLReader reader,
org.xml.sax.InputSource source,
java.lang.Class<T> expectedType)
throws JAXBException
JAXBException
public <T> JAXBElement<T> unmarshal(javax.xml.transform.Source source,
java.lang.Class<T> expectedType)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public java.lang.Object unmarshal0(javax.xml.transform.Source source,
JaxBeanInfo expectedType)
throws JAXBException
JAXBExceptionpublic final ValidationEventHandler getEventHandler()
getEventHandler in interface UnmarshallergetEventHandler in class AbstractUnmarshallerImplpublic final boolean hasEventHandler()
The default handler ignores any errors, and for that this method returns false.
public <T> JAXBElement<T> unmarshal(org.w3c.dom.Node node,
java.lang.Class<T> expectedType)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public final java.lang.Object unmarshal(org.w3c.dom.Node node)
throws JAXBException
unmarshal in interface UnmarshallerJAXBException
@Deprecated
public final java.lang.Object unmarshal(javax.xml.transform.sax.SAXSource source)
throws JAXBException
JAXBException
public final java.lang.Object unmarshal0(org.w3c.dom.Node node,
JaxBeanInfo expectedType)
throws JAXBException
JAXBException
public java.lang.Object unmarshal(javax.xml.stream.XMLStreamReader reader)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public <T> JAXBElement<T> unmarshal(javax.xml.stream.XMLStreamReader reader,
java.lang.Class<T> expectedType)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public java.lang.Object unmarshal0(javax.xml.stream.XMLStreamReader reader,
JaxBeanInfo expectedType)
throws JAXBException
JAXBException
public <T> JAXBElement<T> unmarshal(javax.xml.stream.XMLEventReader reader,
java.lang.Class<T> expectedType)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public java.lang.Object unmarshal(javax.xml.stream.XMLEventReader reader)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public java.lang.Object unmarshal0(java.io.InputStream input,
JaxBeanInfo expectedType)
throws JAXBException
JAXBException
public java.lang.Object getProperty(java.lang.String name)
throws PropertyException
getProperty in interface UnmarshallergetProperty in class AbstractUnmarshallerImplPropertyException
public void setProperty(java.lang.String name,
java.lang.Object value)
throws PropertyException
setProperty in interface UnmarshallersetProperty in class AbstractUnmarshallerImplPropertyExceptionpublic void setSchema(javax.xml.validation.Schema schema)
setSchema in interface UnmarshallersetSchema in class AbstractUnmarshallerImplpublic javax.xml.validation.Schema getSchema()
getSchema in interface UnmarshallergetSchema in class AbstractUnmarshallerImplpublic AttachmentUnmarshaller getAttachmentUnmarshaller()
getAttachmentUnmarshaller in interface UnmarshallergetAttachmentUnmarshaller in class AbstractUnmarshallerImplpublic void setAttachmentUnmarshaller(AttachmentUnmarshaller au)
setAttachmentUnmarshaller in interface UnmarshallersetAttachmentUnmarshaller in class AbstractUnmarshallerImplpublic boolean isValidating()
isValidating in interface UnmarshallerisValidating in class AbstractUnmarshallerImplpublic void setValidating(boolean validating)
setValidating in interface UnmarshallersetValidating in class AbstractUnmarshallerImpl
public <A extends XmlAdapter> void setAdapter(java.lang.Class<A> type,
A adapter)
setAdapter in interface UnmarshallersetAdapter in class AbstractUnmarshallerImplpublic <A extends XmlAdapter> A getAdapter(java.lang.Class<A> type)
getAdapter in interface UnmarshallergetAdapter in class AbstractUnmarshallerImplpublic UnmarshalException createUnmarshalException(org.xml.sax.SAXException e)
createUnmarshalException in class AbstractUnmarshallerImplpublic boolean handleEvent(ValidationEvent event)
Unmarshaller.
handleEvent in interface ValidationEventHandler
public <T> JaxBeanInfo<T> getBeanInfo(java.lang.Class<T> clazz)
throws JAXBException
JAXBExceptionpublic Unmarshaller.Listener getListener()
getListener in interface UnmarshallergetListener in class AbstractUnmarshallerImplpublic void setListener(Unmarshaller.Listener listener)
setListener in interface UnmarshallersetListener in class AbstractUnmarshallerImplpublic UnmarshallingContext getContext()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||