Class ModelExtension

java.lang.Object
gg.jte.models.generator.ModelExtension
All Implemented Interfaces:
JteExtension

public class ModelExtension extends Object implements JteExtension
  • Field Details

  • Constructor Details

    • ModelExtension

      public ModelExtension()
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface JteExtension
      Returns:
      descriptive name of the extension
    • init

      public JteExtension init(Map<String,String> value)
      Description copied from interface: JteExtension
      init will be called after the extension instance is constructed. The map can be used to pass additional configuration properties from a build script.
      Specified by:
      init in interface JteExtension
      Parameters:
      value - Map of property key to configured value
      Returns:
      self or a replacement
    • generate

      public Collection<Path> generate(JteConfig config, Set<TemplateDescription> templateDescriptions)
      Description copied from interface: JteExtension
      Perform the file generation.
      Specified by:
      generate in interface JteExtension
      Parameters:
      config - access to general jte configuration
      templateDescriptions - data about each template jte found.
      Returns:
      the paths to each file generated by this extension