Package rife.bld.extension
Class GeneratedVersion
java.lang.Object
rife.bld.extension.GeneratedVersion
GeneratedVersion data class.
- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the class name.Returns the destination directory.Returns the file extension.Returns the package name.Returns the project.Returns the project name.Returns the template file.voidsetClassName(String className) Sets the class name.voidsetDirectory(File directory) Sets the destination directory.voidsetExtension(String extension) Sets the file extension.voidsetPackageName(String packageName) Sets the package name.voidsetProject(BaseProject project) Sets the project.voidsetProjectName(String projectName) Sets the project name.voidsetTemplate(File template) Sets the template file.
-
Constructor Details
-
GeneratedVersion
public GeneratedVersion()
-
-
Method Details
-
getClassName
Returns the class name.- Returns:
- the class name
-
setClassName
Sets the class name.- Parameters:
className- the class name- Throws:
NullPointerException- ifclassNameisnullIllegalArgumentException- ifclassNameis empty or invalid
-
getDirectory
Returns the destination directory.- Returns:
- the destination directory
-
setDirectory
Sets the destination directory.- Parameters:
directory- the destination directory- Throws:
NullPointerException- ifdirectoryisnull
-
getExtension
Returns the file extension.- Returns:
- the file extension
-
setExtension
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- ifextensionisnullIllegalArgumentException- ifextensionafter trimming is not a.followed by at least one character
-
getPackageName
Returns the package name.- Returns:
- the package name
-
setPackageName
Sets the package name.- Parameters:
packageName- the package name- Throws:
NullPointerException- ifpackageNameisnullIllegalArgumentException- ifpackageNameis invalid
-
getProject
Returns the project.- Returns:
- the project
-
setProject
Sets the project.- Parameters:
project- the project
-
getProjectName
Returns the project name.- Returns:
- the project name
-
setProjectName
Sets the project name.- Parameters:
projectName- the project name- Throws:
NullPointerException- ifprojectNameisnullIllegalArgumentException- ifprojectNameis blank
-
getTemplate
Returns the template file.- Returns:
- the template file
-
setTemplate
Sets the template file.- Parameters:
template- the template
-