Interface ModelToXMLDumper


  • public interface ModelToXMLDumper
    SPI for dumping model definitions into XML representation.
    • Method Detail

      • dumpModelAsXml

        String dumpModelAsXml​(CamelContext context,
                              NamedNode definition)
                       throws Exception
        Dumps the definition as XML
        Parameters:
        context - the CamelContext
        definition - the definition, such as a NamedNode
        Returns:
        the output in XML (is formatted)
        Throws:
        Exception - is throw if error marshalling to XML
      • dumpModelAsXml

        String dumpModelAsXml​(CamelContext context,
                              NamedNode definition,
                              boolean resolvePlaceholders,
                              boolean resolveDelegateEndpoints)
                       throws Exception
        Dumps the definition as XML
        Parameters:
        context - the CamelContext
        definition - the definition, such as a NamedNode
        resolvePlaceholders - whether to resolve property placeholders in the dumped XML
        resolveDelegateEndpoints - whether to resolve delegate endpoints in the dumped XML (limited to endpoints used in uri attributes in the model)
        Returns:
        the output in XML (is formatted)
        Throws:
        Exception - is throw if error marshalling to XML