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