com.sun.xml.bind.v2.runtime.unmarshaller
public final class UnmarshallerImpl extends AbstractUnmarshallerImpl implements ValidationEventHandler
This class can be extended by the generated code to provide type-safe unmarshall methods.
Field Summary | |
---|---|
protected JAXBContextImpl | context Owning |
UnmarshallingContext | coordinator |
static String | FACTORY |
Constructor Summary | |
---|---|
UnmarshallerImpl(JAXBContextImpl context, AssociationMap assoc) |
Method Summary | |
---|---|
UnmarshalException | createUnmarshalException(SAXException e) |
XmlVisitor | createUnmarshallerHandler(InfosetScanner scanner, boolean inplace, JaxBeanInfo expectedType)
Creates and configures a new unmarshalling pipe line.
|
<A extends XmlAdapter> A | getAdapter(Class<A> type) |
AttachmentUnmarshaller | getAttachmentUnmarshaller() |
<T> JaxBeanInfo<T> | getBeanInfo(Class<T> clazz) |
UnmarshallingContext | getContext() |
ValidationEventHandler | getEventHandler() |
Listener | getListener() |
Object | getProperty(String name) |
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() |
static boolean | needsInterning(XMLReader reader) |
<A extends XmlAdapter> void | setAdapter(Class<A> type, A adapter) |
void | setAttachmentUnmarshaller(AttachmentUnmarshaller au) |
void | setListener(Listener listener) |
void | setProperty(String name, Object value) |
void | setSchema(Schema schema) |
void | setValidating(boolean validating) |
protected Object | unmarshal(XMLReader reader, InputSource source) |
protected <T> JAXBElement<T> | unmarshal(XMLReader reader, InputSource source, Class<T> expectedType) |
<T> JAXBElement<T> | unmarshal(Source source, Class<T> expectedType) |
<T> JAXBElement<T> | unmarshal(Node node, Class<T> expectedType) |
Object | unmarshal(Node node) |
Object | unmarshal(SAXSource source) |
Object | unmarshal(XMLStreamReader reader) |
<T> JAXBElement<T> | unmarshal(XMLStreamReader reader, Class<T> expectedType) |
<T> JAXBElement<T> | unmarshal(XMLEventReader reader, Class<T> expectedType) |
Object | unmarshal(XMLEventReader reader) |
Object | unmarshal0(Source source, JaxBeanInfo expectedType) |
Object | unmarshal0(Node node, JaxBeanInfo expectedType) |
Object | unmarshal0(XMLStreamReader reader, JaxBeanInfo expectedType) |
Object | unmarshal0(InputStream input, JaxBeanInfo expectedType) |
Returns: A component that implements both 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.
The default handler ignores any errors, and for that this method returns false.
Deprecated: since 2.0
Deprecated: since 2.0