Package org.citrusframework.xml
Class MarshallerAdapter
java.lang.Object
org.citrusframework.xml.MarshallerAdapter
- All Implemented Interfaces:
Marshaller,Unmarshaller
Marshaller delegates to given Spring Oxm marshaller.
- Author:
- Christoph Deppisch
-
Constructor Summary
ConstructorsConstructorDescriptionMarshallerAdapter(org.springframework.oxm.Marshaller marshaller) MarshallerAdapter(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic MarshallerAdaptermarshaller(org.springframework.oxm.Marshaller marshaller)
-
Constructor Details
-
MarshallerAdapter
public MarshallerAdapter(org.springframework.oxm.Marshaller marshaller) -
MarshallerAdapter
public MarshallerAdapter(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller)
-
-
Method Details
-
marshaller
-
unmarshal
public Object unmarshal(Source source) throws IOException, org.springframework.oxm.XmlMappingException - Specified by:
unmarshalin interfaceUnmarshaller- Throws:
IOExceptionorg.springframework.oxm.XmlMappingException
-
marshal
public void marshal(Object graph, Result result) throws IOException, org.springframework.oxm.XmlMappingException - Specified by:
marshalin interfaceMarshaller- Throws:
IOExceptionorg.springframework.oxm.XmlMappingException
-