Package com.consol.citrus.xml
Class SpringMarshallerAdapter
- java.lang.Object
-
- com.consol.citrus.xml.SpringMarshallerAdapter
-
- All Implemented Interfaces:
org.springframework.oxm.Marshaller
,org.springframework.oxm.Unmarshaller
public class SpringMarshallerAdapter extends Object implements org.springframework.oxm.Marshaller, org.springframework.oxm.Unmarshaller
Spring Oxm marshaller delegates to given internal marshaller.- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description SpringMarshallerAdapter(Marshaller marshaller)
SpringMarshallerAdapter(Marshaller marshaller, Unmarshaller unmarshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
marshal(Object graph, Result result)
boolean
supports(Class<?> clazz)
Object
unmarshal(Source source)
-
-
-
Constructor Detail
-
SpringMarshallerAdapter
public SpringMarshallerAdapter(Marshaller marshaller)
-
SpringMarshallerAdapter
public SpringMarshallerAdapter(Marshaller marshaller, Unmarshaller unmarshaller)
-
-
Method Detail
-
supports
public boolean supports(Class<?> clazz)
- Specified by:
supports
in interfaceorg.springframework.oxm.Marshaller
- Specified by:
supports
in interfaceorg.springframework.oxm.Unmarshaller
-
unmarshal
public Object unmarshal(Source source) throws IOException, org.springframework.oxm.XmlMappingException
- Specified by:
unmarshal
in interfaceorg.springframework.oxm.Unmarshaller
- Throws:
IOException
org.springframework.oxm.XmlMappingException
-
marshal
public void marshal(Object graph, Result result) throws IOException, org.springframework.oxm.XmlMappingException
- Specified by:
marshal
in interfaceorg.springframework.oxm.Marshaller
- Throws:
IOException
org.springframework.oxm.XmlMappingException
-
-