Package dk.mada.jaxrs.generator.mpclient
Class Templates
java.lang.Object
dk.mada.jaxrs.generator.mpclient.Templates
Templates processor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
renderApiTemplate
(Path apiDir, CtxApi context) Renders and writes the API template.void
renderDtoTemplate
(CtxDto context) Renders and writes the DTO template.void
renderExtraTemplate
(ExtraTemplate tmpl, CtxExtraDateSerializer context) Renders and writes an extra template.void
renderInterfaceTemplate
(CtxInterface context) Renders and writes the interface template.
-
Constructor Details
-
Templates
Creates templates.- Parameters:
dtoDir
- the directory to generate DTO classes in
-
-
Method Details
-
renderExtraTemplate
Renders and writes an extra template. The context contains the information to render the template.- Parameters:
tmpl
- the template to generate output fromcontext
- the rendering context
-
renderDtoTemplate
Renders and writes the DTO template. The context contains the information to render the template for a given DTO class.- Parameters:
context
- the rendering context
-
renderInterfaceTemplate
Renders and writes the interface template. The context contains the information to render the template for a given interface class.- Parameters:
context
- the rendering context
-
renderApiTemplate
Renders and writes the API template. The context contains the information to render the template for a given API class.- Parameters:
apiDir
- the directory to generate API classes incontext
- the rendering context
-