$target

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" )

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 ?) : String

Forces the entity name (to change dynamically the entity name)
If a forced name has been defined it will be used as the 'BEANNAME' to build the target file name
Returns a void string (so that it can be used easily in the template)

Parameters :
   ? :

.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

Parameters :
   srcFolder : the source folder (the beginning of path to be removed to get the package folder)

Example :
   package ${target.javaPackageFromFolder($SRC)};

.originalFileDefinition : String

Returns the original file definition for the generation in progress
(the file as defined in the bundle, before variables substitution)

.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