org.objectweb.speedo.wizard
Class SpeedoWizard

java.lang.Object
  extended byorg.objectweb.speedo.wizard.SpeedoWizard

public class SpeedoWizard
extends java.lang.Object

The SpeedoWizard class embodies a functional object and a presentation object: - The functional object encapsulates the algorithm that generates JORM files from JDO specifications. The SpeedoWizard provides a public run() method to initialize and execute this algorithm. - The presentation object displays a JDO wizard, gets the user data and calls the run() method on the IStrategy object it references. The SpeedoWizard class implements the IStrategy interface imported from the wizard library. More precisely, it implements a specific run() method.

Author:
C. Hamon

Constructor Summary
SpeedoWizard(SpeedoWizardCompiler swc, java.lang.String propertyFile)
          Builds a SpeedoWizard object.
 
Method Summary
 boolean run()
          Runs the functional part of the wizard
 void show(java.lang.String projectDir)
          Displays the graphical JDO wizard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpeedoWizard

public SpeedoWizard(SpeedoWizardCompiler swc,
                    java.lang.String propertyFile)
             throws PException
Builds a SpeedoWizard object.

Parameters:
swc - a SpeedoWizardCompiler object, property file the wizard.properties file.
Method Detail

show

public void show(java.lang.String projectDir)
          throws java.lang.Exception
Displays the graphical JDO wizard.

Throws:
java.lang.Exception

run

public boolean run()
            throws SpeedoException
Runs the functional part of the wizard

Returns:
a boolean that indicates the success or the failure of the process
Throws:
SpeedoException