Interface ModelToXMLDumper


public interface ModelToXMLDumper
SPI for dumping model definitions into XML representation.
  • Field Details

  • Method Details

    • 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 generatedIds) 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
      generatedIds - whether to include auto generated IDs
      Returns:
      the output in XML (is formatted)
      Throws:
      Exception - is throw if error marshalling to XML
    • dumpBeansAsXml

      String dumpBeansAsXml(CamelContext context, List<Object> beans) throws Exception
      Dumps the beans as XML
      Parameters:
      context - the CamelContext
      beans - list of beans (RegistryBeanDefinition)
      Returns:
      the output in XML (is formatted)
      Throws:
      Exception - is throw if error marshalling to XML