Class XmlMarshaller

java.lang.Object
org.projecthusky.common.utils.xml.XmlMarshaller

@DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class, locations={PARAMETER,RETURN}) public class XmlMarshaller extends Object
This class provides a marshaller implementation to convert various objects into their XML representation.
Author:
Quentin Ligier
  • Method Details

    • marshall

      public static String marshall(Object object) throws javax.xml.bind.JAXBException
      Marshalles an object to a String.
      Parameters:
      object - The object to marshall.
      Returns:
      the XML representation of the object.
      Throws:
      javax.xml.bind.JAXBException - if an error was encountered while creating the marshaller.