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
ConstructorsConstructorDescriptionConstructor.JaxbMarshallingTool(Marshaller marshaller) Constructor with marshaller. -
Method Summary
Modifier and TypeMethodDescriptionMarshals the object into a string of XML.voidsetMarshaller(Marshaller marshaller) Set the marshaller used to create the XML.
-
Constructor Details
-
JaxbMarshallingTool
public JaxbMarshallingTool()Constructor. -
JaxbMarshallingTool
Constructor with marshaller.- Parameters:
marshaller- The JAXB marshaller.
-
-
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.
-