Class TemplateParser
java.lang.Object
org.operaton.bpm.engine.rest.openapi.generator.impl.TemplateParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringcreateOutputFile(String debugFile) createTemplateData(String sourceDirectory) protected static StringformatJsonString(String jsonString) static voidresolveModels(String sourceDirectory) resolvePaths(String sourceDirectory) protected static voidresolveVersions(Map<String, Object> templateData) Resolve the Operaton version and the respective documentation version used in the links.
-
Constructor Details
-
TemplateParser
public TemplateParser()
-
-
Method Details
-
main
- Throws:
IOExceptionfreemarker.template.TemplateException
-
createTemplateData
-
formatJsonString
-
createOutputFile
-
resolveVersions
Resolve the Operaton version and the respective documentation version used in the links. -
resolveModels
- 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
- 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
-