Class GeneratedVersion

java.lang.Object
rife.bld.extension.GeneratedVersion

@NullMarked public class GeneratedVersion extends Object
GeneratedVersion data class.
Since:
1.0
Author:
Erik C. Thauvin
  • Constructor Details

    • GeneratedVersion

      public GeneratedVersion()
  • Method Details

    • getClassName

      public String getClassName()
      Returns the class name.
      Returns:
      the class name
    • setClassName

      public void setClassName(String className)
      Sets the class name.
      Parameters:
      className - the class name
      Throws:
      NullPointerException - if className is null
      IllegalArgumentException - if className is empty or invalid
    • getDirectory

      public @Nullable File getDirectory()
      Returns the destination directory.
      Returns:
      the destination directory
    • setDirectory

      public void setDirectory(File directory)
      Sets the destination directory.
      Parameters:
      directory - the destination directory
      Throws:
      NullPointerException - if directory is null
    • getExtension

      public String getExtension()
      Returns the file extension.
      Returns:
      the file extension
    • setExtension

      public void setExtension(String extension)
      Sets the file extension. (Default is: .java)

      The extension is stripped of leading/trailing whitespace and must start with a . followed by at least one non-whitespace character (e.g., .java, .kt).

      Parameters:
      extension - the file extension
      Throws:
      NullPointerException - if extension is null
      IllegalArgumentException - if extension after trimming is not a . followed by at least one character
    • getPackageName

      public @Nullable String getPackageName()
      Returns the package name.
      Returns:
      the package name
    • setPackageName

      public void setPackageName(String packageName)
      Sets the package name.
      Parameters:
      packageName - the package name
      Throws:
      NullPointerException - if packageName is null
      IllegalArgumentException - if packageName is invalid
    • getProject

      public @Nullable BaseProject getProject()
      Returns the project.
      Returns:
      the project
    • setProject

      public void setProject(BaseProject project)
      Sets the project.
      Parameters:
      project - the project
    • getProjectName

      public @Nullable String getProjectName()
      Returns the project name.
      Returns:
      the project name
    • setProjectName

      public void setProjectName(String projectName)
      Sets the project name.
      Parameters:
      projectName - the project name
      Throws:
      NullPointerException - if projectName is null
      IllegalArgumentException - if projectName is blank
    • getTemplate

      public @Nullable File getTemplate()
      Returns the template file.
      Returns:
      the template file
    • setTemplate

      public void setTemplate(File template)
      Sets the template file.
      Parameters:
      template - the template