Interface XmlMarshaller

  • All Known Implementing Classes:
    TreeXmlMarshaller

    public interface XmlMarshaller
    Contract to marshall XML from an object.
    Author:
    Daniel Sagenschneider
    • Method Detail

      • marshall

        void marshall​(java.lang.Object source,
                      XmlOutput output)
               throws XmlMarshallException
        Marshalls the source object as XML to the output.
        Parameters:
        source - Object to marshall into XML.
        output - Output to send the XML.
        Throws:
        XmlMarshallException - If fails to marshall source.