Spring Web Services Framework

org.springframework.oxm
Interface Unmarshaller

All Known Subinterfaces:
GenericUnmarshaller, MimeUnmarshaller
All Known Implementing Classes:
AbstractJaxbMarshaller, AbstractMarshaller, AnnotationXStreamMarshaller, CastorMarshaller, Jaxb1Marshaller, Jaxb2Marshaller, JibxMarshaller, XmlBeansMarshaller, XStreamMarshaller

public interface Unmarshaller

Defines the contract for Object XML Mapping unmarshallers.

Implementations of this interface can deserialize a given XML Stream to an Object graph.

Since:
1.0.0
Author:
Arjen Poutsma

Method Summary
 boolean supports(Class clazz)
          Indicates whether this unmarshaller can unmarshal instances of the supplied type.
 Object unmarshal(Source source)
          Unmarshals the given Source into an object graph.
 

Method Detail

unmarshal

Object unmarshal(Source source)
                 throws XmlMappingException,
                        IOException
Unmarshals the given Source into an object graph.

Parameters:
source - the source to marshal from
Returns:
the object graph
Throws:
XmlMappingException - if the given source cannot be mapped to an object
IOException - if an I/O Exception occurs

supports

boolean supports(Class clazz)
Indicates whether this unmarshaller can unmarshal instances of the supplied type.

Parameters:
clazz - the class that this unmarshaller is being asked if it can marshal
Returns:
true if this unmarshaller can indeed unmarshal to the supplied class; false otherwise

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.