public class DryRunTemplateManager extends Object implements TemplateProcessor
| Constructor and Description |
|---|
DryRunTemplateManager(TemplateManagerOptions options)
Constructs a new instance of
DryRunTemplateManager for the provided options |
| Modifier and Type | Method and Description |
|---|---|
void |
error(Path path,
String context) |
Map<String,org.openapitools.codegen.DryRunStatus> |
getDryRunStatusMap()
Gets the full status of this dry run.
|
void |
ignore(Path path,
String context) |
void |
skip(Path path,
String context) |
File |
write(Map<String,Object> data,
String template,
File target)
Writes data to a compiled template
|
File |
writeToFile(String filename,
byte[] contents) |
public DryRunTemplateManager(TemplateManagerOptions options)
DryRunTemplateManager for the provided optionsoptions - Options pertaining to templates (reads and writes)public Map<String,org.openapitools.codegen.DryRunStatus> getDryRunStatusMap()
public File write(Map<String,Object> data, String template, File target) throws IOException
write in interface TemplateProcessordata - Input datatemplate - Input template locationtarget - The targeted file output locationIOExceptionpublic File writeToFile(String filename, byte[] contents) throws IOException
writeToFile in interface TemplateProcessorIOExceptionpublic void ignore(Path path, String context)
ignore in interface TemplateProcessorpublic void skip(Path path, String context)
skip in interface TemplateProcessorpublic void error(Path path, String context)
error in interface TemplateProcessorCopyright © 2021. All rights reserved.