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 TypeMethodDescriptionBuilds the template based on theGeneratedVersion
data.Returns the class file.Returns 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.void
setClassName
(String className) Sets the class name.void
setDirectory
(File directory) Set the destination directory.void
setExtension
(String extension) Sets the file extension.void
setPackageName
(String packageName) Sets the package name.void
setProject
(BaseProject project) Sets the project.void
setProjectName
(String projectName) Sets the project name.void
setTemplate
(File template) Sets the template file.void
writeTemplate
(Template template) Writes the project version class in the given directory.
-
Constructor Details
-
GeneratedVersion
public GeneratedVersion()
-
-
Method Details
-
buildTemplate
Builds the template based on theGeneratedVersion
data.- Returns:
- the template
-
getClassFile
Returns the class file.- Returns:
- the class file
-
getClassName
Returns the class name.- Returns:
- the class name
-
getDirectory
Returns the destination directory.- Returns:
- the destination directory
-
getExtension
Returns the file extension.- Returns:
- the file extension
-
getPackageName
Returns the package name.- Returns:
- the package name
-
getProject
Returns the project.- Returns:
- the project
-
getProjectName
Returns the project name.- Returns:
- the project name
-
getTemplate
Returns the template.- Returns:
- the template
-
setClassName
Sets the class name.- Parameters:
className
- the class name
-
setDirectory
Set the destination directory.- Parameters:
directory
- the destination directory
-
setExtension
Sets the file extension. (Default is:.java
)- Parameters:
extension
- the file extension
-
setPackageName
Sets the package name.- Parameters:
packageName
- the package name
-
setProject
Sets the project.- Parameters:
project
- the project
-
setProjectName
Sets the project name.- Parameters:
projectName
- the project name
-
setTemplate
Sets the template file.- Parameters:
template
- the template
-
writeTemplate
Writes the project version class in the given directory.- Throws:
IOException
-