Class GeneratedVersionOperation


public class GeneratedVersionOperation extends AbstractOperation<GeneratedVersionOperation>
Generates a project version data class.
Since:
1.0
Author:
Erik C. Thauvin
  • Constructor Details

    • GeneratedVersionOperation

      public GeneratedVersionOperation()
  • Method Details

    • className

      public GeneratedVersionOperation className(String className)
      Sets the class name.
      Parameters:
      className - the class name
      Returns:
      this operation instance
    • classTemplate

      public GeneratedVersionOperation classTemplate(File template)
      Sets the class template path.
      Parameters:
      template - the template path
      Returns:
      this operation instance
    • classTemplate

      public GeneratedVersionOperation classTemplate(String template)
      Sets the class template path.
      Parameters:
      template - the template path
      Returns:
      this operation instance
    • classTemplate

      public GeneratedVersionOperation classTemplate(Path template)
      Sets the class template path.
      Parameters:
      template - the template path
      Returns:
      this operation instance
    • directory

      public GeneratedVersionOperation directory(File directory)
      Sets the destination directory.
      Parameters:
      directory - the destination directory
      Returns:
      this operation instance
    • directory

      public GeneratedVersionOperation directory(String directory)
      Sets the destination directory.
      Parameters:
      directory - the destination directory
      Returns:
      this operation instance
    • directory

      public GeneratedVersionOperation directory(Path directory)
      Sets the destination directory.
      Parameters:
      directory - the destination directory
      Returns:
      this operation instance
    • execute

      public void execute() throws Exception
      Generates a version data class for this project.
      Specified by:
      execute in class AbstractOperation<GeneratedVersionOperation>
      Throws:
      Exception
    • extension

      public GeneratedVersionOperation extension(String extension)
      Sets the file extension. (Default is: .java)
      Parameters:
      extension - the file extension
      Returns:
      this operation instance
    • fromProject

      public GeneratedVersionOperation fromProject(BaseProject project)
      Configure the operation from a BaseProject.
      Parameters:
      project - the project
      Returns:
      this operation instance
    • generatedVersion

      public GeneratedVersion generatedVersion()
      Retrieves the generated version instance.
      Returns:
      the generated version
    • packageName

      public GeneratedVersionOperation packageName(String packageName)
      Sets the package name.
      Parameters:
      packageName - the package name
      Returns:
      this operation instance
    • projectName

      public GeneratedVersionOperation projectName(String projectName)
      Sets the project name.
      Parameters:
      projectName - the project name
      Returns:
      this operation instance