Class Templates

java.lang.Object
dk.mada.jaxrs.generator.mpclient.Templates

public class Templates extends Object
Templates processor.
  • Constructor Details

    • Templates

      public Templates(Path dtoDir)
      Creates templates.
      Parameters:
      dtoDir - the directory to generate DTO classes in
  • Method Details

    • renderExtraTemplate

      public void renderExtraTemplate(ExtraTemplate tmpl, CtxExtraDateSerializer context)
      Renders and writes an extra template. The context contains the information to render the template.
      Parameters:
      tmpl - the template to generate output from
      context - the rendering context
    • renderDtoTemplate

      public void renderDtoTemplate(CtxDto context)
      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

      public void renderInterfaceTemplate(CtxInterface context)
      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

      public void renderApiTemplate(Path apiDir, CtxApi context)
      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 in
      context - the rendering context