|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.generation.lib.AbstractGeneratorComponent
org.objectweb.speedo.generation.generator.lib.AbstractVelocityGenerator
org.objectweb.speedo.generation.generator.lib.SpeedoGenerator
org.objectweb.speedo.generation.generator.home.HomeGenerator
Nested Class Summary |
---|
Nested classes inherited from class org.objectweb.speedo.generation.generator.lib.SpeedoGenerator |
---|
SpeedoGenerator.FetchGroup, SpeedoGenerator.Field |
Field Summary | |
---|---|
static java.lang.String |
LOGGER_NAME
|
static java.lang.String |
TEMPLATE_NAME
|
Fields inherited from class org.objectweb.speedo.generation.generator.lib.SpeedoGenerator |
---|
jormTools, PRIMITIVE_TYPES |
Fields inherited from class org.objectweb.speedo.generation.generator.lib.AbstractVelocityGenerator |
---|
fs, template, TEMPLATE_DIR, ve |
Fields inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent |
---|
debug, logger, scp |
Fields inherited from interface org.objectweb.speedo.genclass.SupportedGenClass |
---|
GC_IMPL, GC_IMPL_PREFIX |
Constructor Summary | |
---|---|
HomeGenerator()
|
Method Summary | |
---|---|
void |
generate(SpeedoClass sClass,
java.lang.String fileName)
This method generates the a file since a SpeedoClass meta object. |
protected org.apache.velocity.context.Context |
getContext(SpeedoClass jdoClass)
This method initialises the Velocity context. |
boolean |
init()
|
Methods inherited from class org.objectweb.speedo.generation.generator.lib.SpeedoGenerator |
---|
computeUserCaches, computeUserCaches, fillFetchGroupInfo, fillFieldInfo, fillFieldInfo4FetchGroup, fillReferenceInfo, fillRelationInfo, fillUserFieldMappingInfo, getClassNameDef, getCollectionClass, getJavaLangType, getMapping, getPNameGetter, getValueGetter |
Methods inherited from class org.objectweb.speedo.generation.generator.lib.AbstractVelocityGenerator |
---|
computeTemplate, getExternalsTemplate, getVelocityEngine, isClassicalType, isContainerIdField, process, setVelocityEngine |
Methods inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent |
---|
getLogger, getSpeedoCompilerParameter, setLogger, setSpeedoCompilerParameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.speedo.generation.api.GeneratorComponent |
---|
getSpeedoCompilerParameter, setSpeedoCompilerParameter |
Field Detail |
public static final java.lang.String LOGGER_NAME
public static final java.lang.String TEMPLATE_NAME
Constructor Detail |
public HomeGenerator()
Method Detail |
public boolean init() throws SpeedoException
init
in interface GeneratorComponent
init
in class AbstractVelocityGenerator
SpeedoException
public void generate(SpeedoClass sClass, java.lang.String fileName) throws SpeedoException
generate
in interface VelocityGenerator
generate
in class AbstractVelocityGenerator
sClass
- is the speedo meta object.fileName
- name of the new file.
SpeedoGenerationException
- If there is a problem during writing the new file.
SpeedoException
protected org.apache.velocity.context.Context getContext(SpeedoClass jdoClass) throws SpeedoException
getContext
in class SpeedoGenerator
jdoClass
- :
the jdoClass which represents the class to generate.
SpeedoException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |