| org.objectweb.speedo.generation.generator.api.VelocityGenerator
All known Subclasses: org.objectweb.speedo.generation.generator.lib.AbstractVelocityGenerator,
VelocityGenerator | public interface VelocityGenerator extends GeneratorComponent(Code) | | This interface represents a component of a generator which generates a file
with the Velocity tool. The use of this interface permits to reuse the
VelocityEngine in order have better generation performance. Indeed the
VelocityEngine initialization is very cheap.
author: S.Chassande-Barrioz |
generate | void generate(SpeedoClass sClass, String fileName) throws SpeedoException(Code) | | It generates the file name corresponding to the Speedo meta object given
in parameter.
Parameters: sClass - is the speedo meta object which represents a persistent class Parameters: fileName - is the generated file name throws: SpeedoException - |
getExternalsTemplate | Collection getExternalsTemplate()(Code) | | a collection of the file names which contains macros. This filename list will be given to the VelocityEngine during its initialization. |
getVelocityEngine | VelocityEngine getVelocityEngine()(Code) | | the VelocityEngine used during the velocity generation. |
setVelocityEngine | void setVelocityEngine(VelocityEngine ve)(Code) | | It assignes the VelocityEngine instance which must be used during the
veleocity generatioin.
Parameters: ve - is the VelocityEngine instance to use. |
|
|