|
||||||||||
| 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 |
|---|
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
protected XMLReader getXMLReader()
throws JAXBException
SAXSource object doesn't have XMLReader.
Unmarshaller is not re-entrant, so we will
only use one instance of XMLReader.
Overriden in order to fix potential security issue.
getXMLReader in class AbstractUnmarshallerImplJAXBException
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 AbstractUnmarshallerImplJAXBException
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 Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public Object unmarshal0(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(Node node,
Class<T> expectedType)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public final Object unmarshal(Node node)
throws JAXBException
unmarshal in interface UnmarshallerJAXBException
@Deprecated
public final Object unmarshal(SAXSource source)
throws JAXBException
JAXBException
public final Object unmarshal0(Node node,
JaxBeanInfo expectedType)
throws JAXBException
JAXBException
public Object unmarshal(XMLStreamReader reader)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public <T> JAXBElement<T> unmarshal(XMLStreamReader reader,
Class<T> expectedType)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public Object unmarshal0(XMLStreamReader reader,
JaxBeanInfo expectedType)
throws JAXBException
JAXBException
public <T> JAXBElement<T> unmarshal(XMLEventReader reader,
Class<T> expectedType)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public Object unmarshal(XMLEventReader reader)
throws JAXBException
unmarshal in interface Unmarshallerunmarshal in class AbstractUnmarshallerImplJAXBException
public Object unmarshal0(InputStream input,
JaxBeanInfo expectedType)
throws JAXBException
JAXBException
public Object getProperty(String name)
throws PropertyException
getProperty in interface UnmarshallergetProperty in class AbstractUnmarshallerImplPropertyException
public void setProperty(String name,
Object value)
throws PropertyException
setProperty in interface UnmarshallersetProperty in class AbstractUnmarshallerImplPropertyExceptionpublic void setSchema(Schema schema)
setSchema in interface UnmarshallersetSchema in class AbstractUnmarshallerImplpublic 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(Class<A> type,
A adapter)
setAdapter in interface UnmarshallersetAdapter in class AbstractUnmarshallerImplpublic <A extends XmlAdapter> A getAdapter(Class<A> type)
getAdapter in interface UnmarshallergetAdapter in class AbstractUnmarshallerImplpublic UnmarshalException createUnmarshalException(SAXException e)
createUnmarshalException in class AbstractUnmarshallerImplpublic boolean handleEvent(ValidationEvent event)
Unmarshaller.
handleEvent in interface ValidationEventHandler
public <T> JaxBeanInfo<T> getBeanInfo(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 Throwable
finalize in class ObjectThrowable
public void close()
throws IOException
close in interface CloseableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||