Class TemplateParser


  • public class TemplateParser
    extends Object
    • Constructor Detail

      • TemplateParser

        public TemplateParser()
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws IOException,
                                freemarker.template.TemplateException
        Throws:
        IOException
        freemarker.template.TemplateException
      • formatJsonString

        protected static String formatJsonString​(String jsonString)
      • resolveVersions

        protected static void resolveVersions​(Map<String,​Object> templateData)
        Resolve the Camunda Platform version and the respective documentation version used in the links.
      • resolveModels

        protected static Map<String,​String> resolveModels​(String sourceDirectory)
        Parameters:
        sourceDirectory - the template directory that stores the models
        Returns:
        a map of model name and file path to it, the map is ordered lexicographically by the model names
      • resolvePaths

        protected static Map<String,​List<String>> resolvePaths​(String sourceDirectory)
        Parameters:
        sourceDirectory - the template directory that stores the endpoints
        Returns:
        a map of endpoint path and HTTP methods pairs, the map is ordered lexicographically by the endpoint paths the list of methods is ordered as well