Top Description Methods
org.springframework.oxm

public Interface Unmarshaller

Known Direct Subinterfaces
org.springframework.oxm.mime.MimeUnmarshaller, org.springframework.oxm.GenericUnmarshaller
Known Direct Implementers
org.springframework.oxm.support.AbstractMarshaller
Imports
java.io.IOException, javax.xml.transform.Source

Defines the contract for Object XML Mapping unmarshallers. Implementations of this interface can deserialize a given XML Stream to an Object graph.
Author
Arjen Poutsma
Since
3.0
See Also
Marshaller

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this unmarshaller can indeed unmarshal to the supplied class; false otherwise
supports
(Class<?>
the class that this unmarshaller is being asked if it can marshal
clazz
)

Indicate whether this unmarshaller can unmarshal instances of the supplied type.

public Object

Returns:

the object graph
unmarshal
(Source
the source to marshal from
source
)

Unmarshal the given Source into an object graph.

Method Detail

supportsback to summary
public boolean supports(Class<?> clazz)

Indicate whether this unmarshaller can unmarshal instances of the supplied type.

Parameters
clazz:Class<?>

the class that this unmarshaller is being asked if it can marshal

Returns:boolean

true if this unmarshaller can indeed unmarshal to the supplied class; false otherwise

unmarshalback to summary
public Object unmarshal(Source source) throws IOException, XmlMappingException

Unmarshal the given Source into an object graph.

Parameters
source:Source

the source to marshal from

Returns:Object

the object graph

Exceptions
IOException:
if an I/O error occurs
XmlMappingException:
if the given source cannot be mapped to an object