java.lang.Object
org.cruk.clarity.api.jaxb.JaxbMarshallingTool
Tool to help debugging: a short cut for marshalling an object to a string.
Used to help debugging of the REST client by marshalling the object back into XML form for printing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMarshals the object into a string of XML.void
setMarshaller
(Marshaller marshaller) Set the marshaller used to create the XML.
-
Constructor Details
-
JaxbMarshallingTool
public JaxbMarshallingTool() -
JaxbMarshallingTool
-
-
Method Details
-
setMarshaller
Set the marshaller used to create the XML.- Parameters:
marshaller
- The Jaxb Marshaller.
-
marshal
Marshals the object into a string of XML.- Parameters:
thing
- The object to marshal.- Returns:
- The XML string.
- Throws:
XmlMappingException
- if there is a problem marshalling the object.
-