org.objectweb.speedo.generation.generator.fields
Class FieldsGenerator
java.lang.Object
|
+--org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
|
+--org.objectweb.speedo.generation.generator.lib.AbstractVelocityGenerator
|
+--org.objectweb.speedo.generation.generator.fields.FieldsGenerator
- All Implemented Interfaces:
- GeneratorComponent, VelocityGenerator
- public class FieldsGenerator
- extends AbstractVelocityGenerator
This class is used to generate accessor classes. This new file will
manage status of persistent classes and values of persistent fields.
- Author:
- F. Dhumeaux, S.Chassande-Barrioz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER_NAME
public static final java.lang.String LOGGER_NAME
TEMPLATE_NAME
public static final java.lang.String TEMPLATE_NAME
PRIMITIVE_TYPES
public final java.lang.Class[][] PRIMITIVE_TYPES
FieldsGenerator
public FieldsGenerator()
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.
isNull
public boolean isNull(java.lang.Object o)
isParentField
public boolean isParentField(SpeedoClass sc,
java.lang.String fn)