| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sourceforge.ifx.tools.VelocityWriter
Uses Velocity templates in the conf/ subdirectory to build Java source files from populated beans. Used by the CodeGenerator tool and the LegacyAdapterGenerator tools.
| Constructor Summary | |
VelocityWriter()
Builds a default VelocityWriter object.  | 
|
| Method Summary | |
 java.lang.String | 
getBaseDir()
Return the base directory for this object.  | 
 java.lang.String | 
getSuffix()
Return the suffix for the generated file.  | 
 java.lang.String | 
getTemplateDir()
Returns the template directory for this object.  | 
 void | 
setBaseDir(java.lang.String basedir)
Set the base directory for this object.  | 
 void | 
setSuffix(java.lang.String suffix)
Set the suffix for the generated file.  | 
 void | 
setTemplateDir(java.lang.String templateDir)
Set the template directory for this object.  | 
 void | 
write(java.lang.String generatedBeanFqcn,
      java.lang.Object templateBean)
Instantiates a Velocity engine to write the bean to a file.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public VelocityWriter()
| Method Detail | 
public java.lang.String getTemplateDir()
public void setTemplateDir(java.lang.String templateDir)
templateDir - the template directory to set.public java.lang.String getBaseDir()
public void setBaseDir(java.lang.String basedir)
basedir - the base directory to set.public java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix)
suffix - the generated file suffix to set.
public void write(java.lang.String generatedBeanFqcn,
                  java.lang.Object templateBean)
           throws java.lang.Exception
generatedBeanFqcn - the fully qualified class name of the bean
 to be generated.templateBean - the bean containing values to be fed to the template.
java.lang.Exception - if any was thrown.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||