|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTypeHelper
org.objectweb.jorm.generator.lib.CommonHelper
org.objectweb.jorm.generator.lib.CommonJVMHelper
org.objectweb.jorm.generator.lib.CommonGenerator
org.objectweb.jorm.generator.lib.PNameGetterGenerator
This class is a generator of XXXPNG objects. It is generic either the mapper
type. This generator use the velocity tools. The used template is PNG.vm .
Associated to this template this generator builds a velocity context which
contains the following information:
Key | Value |
"compositename" | The reference to the compositename meta object |
"tools" | The reference to the CommonHelper |
"header" | The file name of the common template which contains the header of the generate files. |
Field Summary |
Fields inherited from class org.objectweb.jorm.generator.lib.CommonGenerator |
GEN_TEMPLATE_DIR, logger, loggerFactory, MAPPER_TEMPLATE_DIR, template, velocityEngine |
Fields inherited from class org.objectweb.jorm.generator.lib.CommonHelper |
debug, PN_GET_TYPES |
Constructor Summary | |
PNameGetterGenerator()
|
Method Summary | |
void |
generate(CompositeName cn,
TargetHolder holder,
JormCompilerParameter cp)
This method generates a XPNameGetter file corresponding to the mo parameter in the directory parameter. |
java.lang.String |
getPNGItfName(java.lang.String className)
|
Methods inherited from class org.objectweb.jorm.generator.lib.CommonGenerator |
getLogger, getLoggerFactory, getTemplateLibraries, setLogger, setLoggerFactory, setVelocityEngine |
Methods inherited from class org.objectweb.jorm.generator.lib.CommonJVMHelper |
any2I, getConstructorFieldsPncParam, getJVMClassName, getJVMClassName, getJVMClassName, getJVMType, getJVMType, loadNull, write, writeJavaClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PNameGetterGenerator()
Method Detail |
public void generate(CompositeName cn, TargetHolder holder, JormCompilerParameter cp) throws PException
cn
- The meta object interface.holder
- The target holder which allows to create filescp
- This parameter permits to reach the compilation parameters.
PException
public java.lang.String getPNGItfName(java.lang.String className)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |