|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.objectweb.jorm.comp.generator.lib.ObjectGenerator
|
+--org.objectweb.jorm.comp.generator.lib.AccessorGenerator
This class is a generator of XXXAccessor objects. It is generic either the
mapper type. This generator use the velocity tools. The used template is
Accessor.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 |
| "tools" | The reference to the CommonHelper |
| "header" | The file name of the common template which contains the header of the generate files. |
| Fields inherited from class org.objectweb.jorm.comp.generator.lib.ObjectGenerator |
logger, loggerFactory, TEMPLATE_DIR |
| Constructor Summary | |
AccessorGenerator()
|
|
| Method Summary | |
void |
generate(MetaObject pod,
org.objectweb.util.io.api.TargetHolder holder,
CompilerParameter cp)
This method generates a XAccessor file corresponding to the pod parameter in the directory parameter |
| Methods inherited from class org.objectweb.jorm.comp.generator.lib.ObjectGenerator |
getLogger, getLoggerFactory, initVelocity, setLogger, setLoggerFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AccessorGenerator()
| Method Detail |
public void generate(MetaObject pod,
org.objectweb.util.io.api.TargetHolder holder,
CompilerParameter cp)
throws java.lang.Exception
generate in class ObjectGeneratorpod - the meta object interfaceth - The target holder which allows to create filescp - This parameter permits to reach the compilation parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||