( documentation for Telosys generator version 3.3.0 )
The current target for the generation in progress
Example when using $generator :
$generator.generate($target.entityName, "${beanClass.name}Key.java", $target.folder, "jpa_bean_pk.vm" )
Since : 2.0.3
Attributes and methods |
.entityName : String
Returns the entity name for the generation in progress (entity class name : Book, Author, ...) |
.file : String
Returns the output file name for the generation in progress |
.folder : String
Returns the output file folder for the generation in progress |
.forceEntityName(String forcedName) : String
Forces the entity name (to change dynamically the entity name) |
.forcedEntityName : String
Returns the 'forced entity name' (or '' if none) |
.javaPackageFromFolder(String srcFolder) : String
Returns the Java package corresponding to the file path after removing the given source folder |
.originalFileDefinition : String
Returns the original file definition for the generation in progress |
.originalFolderDefinition : String
Returns the original folder definition for the generation in progress |
.outputFileExists() : boolean
Returns true if the file to generate already exists |
.outputFileFullPath : String
Returns the full path of the file that will be generated |
.targetName : String
Returns the target's name (as defined in the targets file) for the generation in progress |
.template : String
Returns the template file name (.vm) for the generation in progress |
.type : String
Returns the target type as in templates configuration file |