org.objectweb.speedo.generation.jorm
Class JormMIGenerator

java.lang.Object
  extended by org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
      extended by org.objectweb.speedo.generation.jorm.JormMIGenerator
All Implemented Interfaces:
GeneratorComponent

public class JormMIGenerator
extends AbstractGeneratorComponent

Build the JORM meta information

Author:
S.Chassande-Barrioz

Field Summary
protected  org.objectweb.jorm.compiler.lib.JormCompiler jormcompiler
          Jorm classes intended for JORM generation
static java.lang.String LOGGER_NAME
           
 
Fields inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
debug, logger, personality, scp
 
Constructor Summary
JormMIGenerator(Personality p)
           
 
Method Summary
protected  void compareClass(SpeedoClass clas, org.objectweb.jorm.metainfo.api.Manager manager, java.util.List except)
           
 java.lang.String getTitle()
           
 boolean init()
          Instanciates and configures partialy a JormCompiler required for the .pd parsing and fetching a configured MIManager
protected  void isCompatible()
          Verifies that all persistent capable field for jdo is described in JORM.
 void process()
          Do the job of the component.
 void process2()
          Performs the JORM Meta Information building.
 
Methods inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
getLogger, getSpeedoCompilerParameter, getSummary, setLogger, setSpeedoCompilerParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER_NAME

public static final java.lang.String LOGGER_NAME
See Also:
Constant Field Values

jormcompiler

protected org.objectweb.jorm.compiler.lib.JormCompiler jormcompiler
Jorm classes intended for JORM generation

Constructor Detail

JormMIGenerator

public JormMIGenerator(Personality p)
Method Detail

init

public boolean init()
             throws SpeedoException
Instanciates and configures partialy a JormCompiler required for the .pd parsing and fetching a configured MIManager

Specified by:
init in interface GeneratorComponent
Specified by:
init in class AbstractGeneratorComponent
Returns:
boolean value indicating if the process method can be called.
Throws:
SpeedoException - if the component initialization fails

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface GeneratorComponent
Overrides:
getTitle in class AbstractGeneratorComponent
Returns:
a short string (less than 30 characters) representing the title of the component. This string must indicate job of the component.

process

public void process()
             throws SpeedoException
Description copied from interface: GeneratorComponent
Do the job of the component.

Specified by:
process in interface GeneratorComponent
Specified by:
process in class AbstractGeneratorComponent
Throws:
SpeedoException - if the component initialization fails

process2

public void process2()
              throws SpeedoException,
                     org.objectweb.jorm.api.PException
Performs the JORM Meta Information building.

Throws:
SpeedoException
org.objectweb.jorm.api.PException

isCompatible

protected void isCompatible()
                     throws SpeedoException
Verifies that all persistent capable field for jdo is described in JORM.

Throws:
SpeedoXMLError - if JORM an JDO MetaData are not coherent
SpeedoException

compareClass

protected void compareClass(SpeedoClass clas,
                            org.objectweb.jorm.metainfo.api.Manager manager,
                            java.util.List except)
                     throws SpeedoException
Throws:
SpeedoException