|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.generator.lib.CommonHelper
org.objectweb.jorm.generator.lib.CommonGenerator
org.objectweb.jorm.generator.lib.BindingGenerator
This class is a generator of XXXBinding objects. This generator use the
velocity tools. The used template is Binding.vm . Associated to this template
this generator builds a velocity context which contains the following
information:
Key | Value |
"class" | The reference to the Class meta object |
"classND" | The reference to the used NameDef |
"tools" | The reference to the CommonHelper |
"header" | The file name of the common template which contains the header of the generate files. |
"cparam" | The reference to a CompilerParameter instance. This instance describes the user compilation parameter. |
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 | |
BindingGenerator()
|
Method Summary | |
void |
generate(Class clazz,
TargetHolder holder,
JormCompilerParameter cp,
JormCompilerConfigurator jcc)
This method generates a XPBinding file corresponding to the pod parameter in the directory parameter |
Methods inherited from class org.objectweb.jorm.generator.lib.CommonGenerator |
getLogger, getLoggerFactory, getTemplateLibraries, setLogger, setLoggerFactory, setVelocityEngine |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BindingGenerator()
Method Detail |
public void generate(Class clazz, TargetHolder holder, JormCompilerParameter cp, JormCompilerConfigurator jcc) throws PException
clazz
- the class meta object interfaceholder
- The target holder which allows to create filescp
- This parameter permits to reach the compilation parametersjcc
- the JormCompilerConfigurator
PException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |