Interface ModelToYAMLDumper


public interface ModelToYAMLDumper
SPI for dumping model definitions into YAML representation.
  • Field Details

  • Method Details

    • dumpModelAsYaml

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

      String dumpModelAsYaml(CamelContext context, NamedNode definition, boolean resolvePlaceholders, boolean uriAsParameters) throws Exception
      Dumps the definition as YAML
      Parameters:
      context - the CamelContext
      definition - the definition, such as a NamedNode
      resolvePlaceholders - whether to resolve property placeholders in the dumped YAML
      uriAsParameters - whether to expand uri into a key/value parameters
      Returns:
      the output in YAML (is formatted)
      Throws:
      Exception - is throw if error marshalling to YAML