|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.model.BasicModelGenerator
ch.sahits.codegen.php.PHPCodeGenerator
public class PHPCodeGenerator
Generator class for PHP classes based on a database structure and an PHP class model (initialized through XML)
| Constructor Summary | |
|---|---|
PHPCodeGenerator()
|
|
| Method Summary | |
|---|---|
IGeneratedObject |
createModel(IProgressMonitor monitor,
IOutputFileModel model)
Create an arbitrary model for the generator class. |
java.lang.String |
generate()
Generat a PHP class based on a IPHPDBModel that implements the
toString method. |
void |
init(IOutputFileModel outputModel,
IGeneratedObject model)
Initialize the model this generators model The model must be an instance of IPHPDBModel. |
boolean |
isGeneratedOutputFile()
Check whether the output is a file |
| Methods inherited from class ch.sahits.codegen.model.BasicModelGenerator |
|---|
createModelWithDBInputFile, createModelWithoutDB, initModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PHPCodeGenerator()
| Method Detail |
|---|
public IGeneratedObject createModel(IProgressMonitor monitor,
IOutputFileModel model)
IPHPDBModel from the object model.
createModel in interface IGeneralGeneratormonitor - to monitor the progressmodel - Model of the data of the wizard
init(IOutputFileModel, IGeneratedObject)
public void init(IOutputFileModel outputModel,
IGeneratedObject model)
IPHPDBModel.
If the model is not of this type a ClassCastException is thrown
init in interface IGeneralGeneratoroutputModel - IOutputFileModel that defines the setup of the generationmodel - IPHPDBModelpublic boolean isGeneratedOutputFile()
isGeneratedOutputFile in interface IGeneralGeneratorpublic java.lang.String generate()
IPHPDBModel that implements the
toString method.
generate in interface IGeneralStringGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||