|
|||||||||
| Home >> All >> org >> scopemvc >> application >> [ timewarp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.scopemvc.application.timewarp
Class CodeGeneratorModel

java.lang.Objectorg.scopemvc.model.basic.BasicModel
org.scopemvc.application.timewarp.CodeGeneratorModel
- All Implemented Interfaces:
- CodeGeneratorConstants, org.scopemvc.core.ModelChangeEventSource, org.scopemvc.core.ModelChangeListener, org.scopemvc.core.ModelChangeTypes
- public class CodeGeneratorModel
- extends org.scopemvc.model.basic.BasicModel
- implements CodeGeneratorConstants
- extends org.scopemvc.model.basic.BasicModel
Model component for the timeWarp application.
- Version:
- 1.0
| Fields inherited from class org.scopemvc.model.basic.BasicModel |
|
| Fields inherited from interface org.scopemvc.core.ModelChangeTypes |
ACCESS_CHANGED, VALUE_ADDED, VALUE_CHANGED, VALUE_REMOVED |
| Constructor Summary | |
CodeGeneratorModel()
Constructor for the CodeGeneratorModel object |
|
| Method Summary | |
void |
addFormField()
Add a field to the list of fields in fieldEntries |
boolean |
containsDataType(java.lang.String type)
Description of the Method |
boolean |
containsFieldType(java.lang.String type)
Description of the Method |
boolean |
containsListType()
Description of the Method |
void |
generateCode()
Initializes the file generators for each type of file and calls their generate() method to trigger file generation. |
java.lang.String |
getBaseClassName()
Gets the base class name |
java.util.ArrayList |
getButtons()
Gets the buttons |
java.lang.String |
getConstantsSuffix()
Gets the constants suffix |
java.lang.String |
getControllerSuffix()
Gets the controller suffix |
java.lang.String[] |
getDataTypes()
Gets the datatypes |
java.util.ArrayList |
getFieldEntries()
Gets the field entries |
java.util.ArrayList |
getFieldtypes()
Gets the fieldtypes |
private org.scopemvc.application.timewarp.source.FileProducer |
getFileProducer(java.lang.String name)
|
boolean |
getGenController()
Gets the gencontroller |
boolean |
getGenLauncher()
Gets the genlauncher |
boolean |
getGenModel()
Gets the genmodel |
boolean |
getGenTestcases()
Gets the gentestcases |
boolean |
getGenView()
Gets the genview |
boolean |
getIncludeResetButton()
Gets the include reset button |
boolean |
getIncludeSaveButton()
Gets the include save button |
java.lang.String |
getLauncherSuffix()
Gets the launcher suffix |
java.lang.String |
getModelSuffix()
Gets the model suffix |
java.lang.String |
getNewButtonName()
Gets the new button name |
java.lang.String |
getNewFieldControlID()
Gets the new field control ID |
java.lang.String |
getNewFieldLabel()
Gets the new field label |
java.lang.String |
getNewFieldName()
Gets the new field name |
java.lang.String |
getPackageDescription()
Gets the package description |
java.lang.String |
getPackageString()
Gets the package string |
java.lang.String |
getPathString()
Gets the path string |
java.lang.String |
getSelectedDataType()
Gets the selected datatype |
org.scopemvc.application.timewarp.fieldtype.FieldType |
getSelectedFieldType()
Gets the selected field type |
java.lang.String |
getTestPathString()
Gets the test path string |
java.lang.String |
getTestSuffix()
Gets the test suffix |
boolean |
getValidateForm()
Gets the validate form |
java.lang.String |
getViewStyle()
Gets the view style |
java.lang.String |
getViewSuffix()
Gets the view suffix |
void |
populateDataTypes()
Description of the Method |
void |
populateFieldTypes()
Populate the comboType SComboBox with one each of the FieldType subclasses representing Scope SObjects that can be generated on a View class. |
void |
populateFileProducers()
Description of the Method |
void |
populatePreferences()
Description of the Method |
void |
removeFormField(CodeGeneratorController c)
Remove the highlighted field from the list. |
private void |
runVelocity(org.apache.velocity.VelocityContext context,
java.io.File outputFile,
java.io.Reader reader)
|
void |
setBaseClassName(java.lang.String NBaseClassName)
Sets the base class name |
void |
setConstantsSuffix(java.lang.String newConstantsSuffix)
Sets the constants suffix |
void |
setControllerSuffix(java.lang.String newControllerSuffix)
Sets the controller suffix |
void |
setFieldEntries(java.util.ArrayList NfieldEntries)
Sets the field entries |
void |
setFieldtypes(java.util.ArrayList Nfieldtypes)
Sets the fieldtypes |
private void |
setFileProducerEnabled(java.lang.String name,
boolean enabled)
|
void |
setGenController(boolean input)
Sets the gencontroller |
void |
setGenLauncher(boolean input)
Sets the genlauncher |
void |
setGenModel(boolean input)
Sets the genmodel |
void |
setGenTestcases(boolean input)
Sets the gentestcases |
void |
setGenView(boolean input)
Sets the genview |
void |
setIncludeResetButton(boolean Nreset)
Sets the include reset button |
void |
setIncludeSaveButton(boolean Nsave)
Sets the include save button |
void |
setLauncherSuffix(java.lang.String value)
Sets the launcher suffix |
void |
setModelSuffix(java.lang.String newModelSuffix)
Sets the model suffix |
void |
setNewButtonName(java.lang.String NnewButtonName)
Sets the new button name |
void |
setNewFieldControlID(java.lang.String NnewFieldControlID)
Sets the new field control ID |
void |
setNewFieldLabel(java.lang.String NnewFieldLabel)
Sets the new field label |
void |
setNewFieldName(java.lang.String NnewFieldName)
Sets the new field name |
void |
setPackageDescription(java.lang.String NPackageDesc)
Sets the package description |
void |
setPackageString(java.lang.String NPackageString)
Sets the package string |
void |
setPathString(java.lang.String NPathString)
Sets the path string |
void |
setSelectedDataType(java.lang.String Ndtype)
Sets the selected datatype |
void |
setSelectedFieldType(org.scopemvc.application.timewarp.fieldtype.FieldType NField)
Sets the selected field type |
void |
setTestPathString(java.lang.String newPath)
Sets the test path string |
void |
setTestSuffix(java.lang.String newTestSuffix)
Sets the test suffix |
void |
setValidateForm(boolean Nvalid)
Sets the validate form |
void |
setViewStyle(java.lang.String value)
Sets the view style |
void |
setViewSuffix(java.lang.String newViewSuffix)
Sets the view suffix |
| Methods inherited from class org.scopemvc.model.basic.BasicModel |
addModelChangeListener, fireModelChange, listenNewSubmodel, makeActive, modelChanged, removeModelChangeListener, unlistenOldSubmodel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
selectedFieldType
org.scopemvc.application.timewarp.fieldtype.FieldType selectedFieldType
selectedDataType
java.lang.String selectedDataType
velocityEngine
private org.apache.velocity.app.VelocityEngine velocityEngine
fileProducers
private java.util.HashMap fileProducers
pathString
private java.lang.String pathString
testPathString
private java.lang.String testPathString
packageString
private java.lang.String packageString
packageDescription
private java.lang.String packageDescription
baseClassName
private java.lang.String baseClassName
dataTypes
private java.lang.String[] dataTypes
fieldEntries
private java.util.ArrayList fieldEntries
fieldtypes
private java.util.ArrayList fieldtypes
newFieldName
private java.lang.String newFieldName
newFieldLabel
private java.lang.String newFieldLabel
newFieldControlID
private java.lang.String newFieldControlID
includeSaveButton
private boolean includeSaveButton
includeResetButton
private boolean includeResetButton
genController
private boolean genController
genModel
private boolean genModel
genView
private boolean genView
genTestcases
private boolean genTestcases
genLauncher
private boolean genLauncher
newButtonName
private java.lang.String newButtonName
validateForm
private boolean validateForm
constantsSuffix
private java.lang.String constantsSuffix
modelSuffix
private java.lang.String modelSuffix
controllerSuffix
private java.lang.String controllerSuffix
viewSuffix
private java.lang.String viewSuffix
viewStyle
private java.lang.String viewStyle
launcherSuffix
private java.lang.String launcherSuffix
testSuffix
private java.lang.String testSuffix
| Constructor Detail |
CodeGeneratorModel
public CodeGeneratorModel()
- Constructor for the CodeGeneratorModel object
| Method Detail |
getPathString
public java.lang.String getPathString()
- Gets the path string
getTestPathString
public java.lang.String getTestPathString()
- Gets the test path string
getPackageString
public java.lang.String getPackageString()
- Gets the package string
getPackageDescription
public java.lang.String getPackageDescription()
- Gets the package description
getBaseClassName
public java.lang.String getBaseClassName()
- Gets the base class name
getFieldtypes
public java.util.ArrayList getFieldtypes()
- Gets the fieldtypes
getFieldEntries
public java.util.ArrayList getFieldEntries()
- Gets the field entries
getSelectedFieldType
public org.scopemvc.application.timewarp.fieldtype.FieldType getSelectedFieldType()
- Gets the selected field type
getNewFieldName
public java.lang.String getNewFieldName()
- Gets the new field name
getNewFieldLabel
public java.lang.String getNewFieldLabel()
- Gets the new field label
getNewFieldControlID
public java.lang.String getNewFieldControlID()
- Gets the new field control ID
getDataTypes
public java.lang.String[] getDataTypes()
- Gets the datatypes
getSelectedDataType
public java.lang.String getSelectedDataType()
- Gets the selected datatype
getIncludeSaveButton
public boolean getIncludeSaveButton()
- Gets the include save button
getIncludeResetButton
public boolean getIncludeResetButton()
- Gets the include reset button
getNewButtonName
public java.lang.String getNewButtonName()
- Gets the new button name
getValidateForm
public boolean getValidateForm()
- Gets the validate form
getButtons
public java.util.ArrayList getButtons()
- Gets the buttons
getGenController
public boolean getGenController()
- Gets the gencontroller
getGenModel
public boolean getGenModel()
- Gets the genmodel
getGenView
public boolean getGenView()
- Gets the genview
getGenTestcases
public boolean getGenTestcases()
- Gets the gentestcases
getGenLauncher
public boolean getGenLauncher()
- Gets the genlauncher
getModelSuffix
public java.lang.String getModelSuffix()
- Gets the model suffix
getConstantsSuffix
public java.lang.String getConstantsSuffix()
- Gets the constants suffix
getControllerSuffix
public java.lang.String getControllerSuffix()
- Gets the controller suffix
getViewSuffix
public java.lang.String getViewSuffix()
- Gets the view suffix
getTestSuffix
public java.lang.String getTestSuffix()
- Gets the test suffix
getViewStyle
public java.lang.String getViewStyle()
- Gets the view style
getLauncherSuffix
public java.lang.String getLauncherSuffix()
- Gets the launcher suffix
setViewStyle
public void setViewStyle(java.lang.String value)
- Sets the view style
setPathString
public void setPathString(java.lang.String NPathString)
- Sets the path string
setTestPathString
public void setTestPathString(java.lang.String newPath)
- Sets the test path string
setPackageDescription
public void setPackageDescription(java.lang.String NPackageDesc)
- Sets the package description
setPackageString
public void setPackageString(java.lang.String NPackageString)
- Sets the package string
setBaseClassName
public void setBaseClassName(java.lang.String NBaseClassName)
- Sets the base class name
setFieldtypes
public void setFieldtypes(java.util.ArrayList Nfieldtypes)
- Sets the fieldtypes
setFieldEntries
public void setFieldEntries(java.util.ArrayList NfieldEntries)
- Sets the field entries
setSelectedFieldType
public void setSelectedFieldType(org.scopemvc.application.timewarp.fieldtype.FieldType NField)
- Sets the selected field type
setNewFieldName
public void setNewFieldName(java.lang.String NnewFieldName)
- Sets the new field name
setNewFieldLabel
public void setNewFieldLabel(java.lang.String NnewFieldLabel)
- Sets the new field label
setNewFieldControlID
public void setNewFieldControlID(java.lang.String NnewFieldControlID)
- Sets the new field control ID
setSelectedDataType
public void setSelectedDataType(java.lang.String Ndtype)
- Sets the selected datatype
setIncludeSaveButton
public void setIncludeSaveButton(boolean Nsave)
- Sets the include save button
setIncludeResetButton
public void setIncludeResetButton(boolean Nreset)
- Sets the include reset button
setNewButtonName
public void setNewButtonName(java.lang.String NnewButtonName)
- Sets the new button name
setValidateForm
public void setValidateForm(boolean Nvalid)
- Sets the validate form
setGenController
public void setGenController(boolean input)
- Sets the gencontroller
setGenModel
public void setGenModel(boolean input)
- Sets the genmodel
setGenView
public void setGenView(boolean input)
- Sets the genview
setGenTestcases
public void setGenTestcases(boolean input)
- Sets the gentestcases
setGenLauncher
public void setGenLauncher(boolean input)
- Sets the genlauncher
setLauncherSuffix
public void setLauncherSuffix(java.lang.String value)
- Sets the launcher suffix
setModelSuffix
public void setModelSuffix(java.lang.String newModelSuffix)
- Sets the model suffix
setControllerSuffix
public void setControllerSuffix(java.lang.String newControllerSuffix)
- Sets the controller suffix
setViewSuffix
public void setViewSuffix(java.lang.String newViewSuffix)
- Sets the view suffix
setTestSuffix
public void setTestSuffix(java.lang.String newTestSuffix)
- Sets the test suffix
setConstantsSuffix
public void setConstantsSuffix(java.lang.String newConstantsSuffix)
- Sets the constants suffix
populateFieldTypes
public void populateFieldTypes()
- Populate the comboType SComboBox with one each of the FieldType
subclasses representing Scope SObjects that can be generated on a View
class.
populatePreferences
public void populatePreferences()
- Description of the Method
populateDataTypes
public void populateDataTypes()
- Description of the Method
populateFileProducers
public void populateFileProducers()
- Description of the Method
addFormField
public void addFormField()
- Add a field to the list of fields in fieldEntries
removeFormField
public void removeFormField(CodeGeneratorController c)
- Remove the highlighted field from the list.
containsDataType
public boolean containsDataType(java.lang.String type)
- Description of the Method
containsFieldType
public boolean containsFieldType(java.lang.String type)
- Description of the Method
containsListType
public boolean containsListType()
- Description of the Method
generateCode
public void generateCode()
- Initializes the file generators for each type of file and calls their
generate() method to trigger file generation.
getFileProducer
private org.scopemvc.application.timewarp.source.FileProducer getFileProducer(java.lang.String name)
setFileProducerEnabled
private void setFileProducerEnabled(java.lang.String name, boolean enabled)
runVelocity
private void runVelocity(org.apache.velocity.VelocityContext context, java.io.File outputFile, java.io.Reader reader)
|
|||||||||
| Home >> All >> org >> scopemvc >> application >> [ timewarp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC