Class Documenter
- java.lang.Object
-
- org.rodnansol.core.generator.writer.Documenter
-
public class Documenter extends Object
Class using theMetadataReaderandTemplateCompilerto read the incoming metadata file and render it to the final file.- Since:
- 0.1.0
- Author:
- nandorholozsnyak
-
-
Constructor Summary
Constructors Constructor Description Documenter(MetadataReader metadataReader, TemplateCompiler templateCompiler, MetadataInputResolverContext metadataInputResolverContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadMetadataAndGenerateRenderedFile(CreateDocumentCommand createDocumentCommand)Creates and writes a single document to disk based on the incoming command object.
-
-
-
Constructor Detail
-
Documenter
public Documenter(MetadataReader metadataReader, TemplateCompiler templateCompiler, MetadataInputResolverContext metadataInputResolverContext)
-
-
Method Detail
-
readMetadataAndGenerateRenderedFile
public void readMetadataAndGenerateRenderedFile(CreateDocumentCommand createDocumentCommand) throws IOException
Creates and writes a single document to disk based on the incoming command object.- Parameters:
createDocumentCommand- command object that contains the information for the generation process.- Throws:
IOException- if any of the I/O operation fails.
-
-