Class FileGeneratorBuilder

  • All Implemented Interfaces:
    io.vertigo.core.lang.Builder<FileGenerator>

    public final class FileGeneratorBuilder
    extends Object
    implements io.vertigo.core.lang.Builder<FileGenerator>
    This class provides a way to create a FileFenerator.
    Author:
    pchretien, mlaroche
    • Method Detail

      • withFileName

        public FileGeneratorBuilder withFileName​(String fileName)
        Parameters:
        fileName - the name of the file including extension
        Returns:
        this builder
      • withPackageName

        public FileGeneratorBuilder withPackageName​(String packageName)
        Parameters:
        packageName - the name of the package
        Returns:
        this builder
      • withEncoding

        public FileGeneratorBuilder withEncoding​(String encoding)
        Parameters:
        packageName - the name of the package
        Returns:
        this builder
      • withTemplateName

        public FileGeneratorBuilder withTemplateName​(Class relativeClass,
                                                     String templateName)
        Parameters:
        templateName - the name of the template
        Returns:
        this builder
      • withTargetGenDir

        public FileGeneratorBuilder withTargetGenDir​(String targetGenDir)
        Parameters:
        targetGenDir - Repertoire de destination
        Returns:
        this builder
      • withGenSubDir

        public FileGeneratorBuilder withGenSubDir​(String genSubDir)
        Parameters:
        genSubDir - Nom subdir de génération
        Returns:
        this builder