org.objectweb.speedo.generation.generator.objectid
Class ObjectIdGenerator

java.lang.Object
  |
  +--org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
        |
        +--org.objectweb.speedo.generation.generator.lib.AbstractVelocityGenerator
              |
              +--org.objectweb.speedo.generation.generator.objectid.ObjectIdGenerator
All Implemented Interfaces:
GeneratorComponent, VelocityGenerator

public class ObjectIdGenerator
extends AbstractVelocityGenerator

Author:
S.Chassande-Barrioz

Inner Class Summary
 class ObjectIdGenerator.Field
           
 
Field Summary
static java.lang.String LOGGER_NAME
           
static java.lang.String OBJECTID_SUFFIX
           
static java.lang.String TEMPLATE_NAME
           
 
Fields inherited from class org.objectweb.speedo.generation.generator.lib.AbstractVelocityGenerator
fs, TEMPLATE_DIR, templateFN, ve
 
Fields inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
logger, scp
 
Constructor Summary
ObjectIdGenerator()
           
 
Method Summary
 void generate(SpeedoClass sClass, java.lang.String fileName)
          This method generates the a file since a SpeedoClass meta object.
 void init()
           
 
Methods inherited from class org.objectweb.speedo.generation.generator.lib.AbstractVelocityGenerator
getExternalsTemplate, getVelocityEngine, isClassicalType, isContainerIdField, process, setVelocityEngine
 
Methods inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
getLogger, getSpeedoCompilerParameter, 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

LOGGER_NAME

public static final java.lang.String LOGGER_NAME

TEMPLATE_NAME

public static final java.lang.String TEMPLATE_NAME

OBJECTID_SUFFIX

public static final java.lang.String OBJECTID_SUFFIX
Constructor Detail

ObjectIdGenerator

public ObjectIdGenerator()
Method Detail

init

public void init()
          throws SpeedoException
Overrides:
init in class AbstractVelocityGenerator

generate

public void generate(SpeedoClass sClass,
                     java.lang.String fileName)
              throws SpeedoException
This method generates the a file since a SpeedoClass meta object.
Overrides:
generate in class AbstractVelocityGenerator
Parameters:
sClass - is the speedo meta object.
fileName - name of the new file.
Throws:
SpeedoGenerationException - If there is a problem during writing the new file.