|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.innoq.generator.jsp.JspAbstractBase
com.innoq.generator.jsp.JspBase
com.innoq.generator.jsp.JspMain
Base class of the master template. Depending on model elements
you are able to define specific templates for generation.
You have to overwrite getTemplates(MBase).
Example:
| Nested Class Summary | |
static class |
JspMain.GenerationResult
|
| Field Summary |
| Fields inherited from class com.innoq.generator.jsp.JspAbstractBase |
TRANSFORMATION_PROPERTIES_KEY |
| Constructor Summary | |
JspMain()
|
|
| Method Summary | |
void |
addToElementsForGeneration(java.util.Collection pCollection)
Adds a complete list of elements to generation. |
void |
addToElementsForGeneration(java.lang.Object pObject)
Adds an element to list of elements for generation. |
void |
addToPart(java.lang.String pKey,
java.lang.Object pElement)
Deprecated. Use JspBase.addToAttributeList(String, Object) instead |
boolean |
canBeGenerated(ru.novosoft.uml.MBase modelElement)
Defines for which elements the generation should be executed. |
boolean |
doPreprocessing()
Hook method - main templates that use preprocessing must overwrite this method to return true |
FileContext |
getContext()
Returns the context. |
abstract java.lang.String |
getName()
Returns the transformation name. |
java.lang.String[] |
getPostprocessTemplates()
Returns an array of templates that should be executed without a specific model element after all the templates returned by getTemplates(MBase) have been executed. |
java.lang.String[] |
getTemplates(ru.novosoft.uml.MBase modelElement)
Returns the templates for a model element. |
java.lang.String[] |
getTemplates(java.lang.Object modelElement)
Returns the templates for a model element. |
boolean |
isMainJSP()
|
boolean |
isModelChanged()
Indicates whether the model has changed. |
com.innoq.generator.logging.ValidationMessage |
isValid(ru.novosoft.uml.MBase modelElement)
Hook which is called for every Modellelement before the generation run starts. |
void |
preprocessElements(ru.novosoft.uml.MBase modelElement)
Hook which is called for every Modellelement before the generation run starts. |
void |
preprocessElements(java.lang.Object modelElement)
Hook which is called for every Modellelement before the generation run starts. |
void |
removeFromElementsForGeneration(java.util.Collection pCollection)
Remove a complete list from elements for generation. |
void |
removeFromElementsForGeneration(java.lang.Object pObject)
Remove an element from list for generation. |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Service method of JSP. |
void |
setModelChanged(boolean pModelChanged)
Sets the model changed status. |
| Methods inherited from class com.innoq.generator.jsp.JspBase |
addToAttributeList, getAttribute, getAttributeList, getDirectory, getElement, getFileExtension, getFilename, getName, getPath, getPath, getPath, getPostfix, getPostfix, getPostfix, getPrefix, getPrefix, getPrefix, getRoot, setAttribute |
| Methods inherited from class com.innoq.generator.jsp.JspAbstractBase |
_jspService, addProperties, destroy, getMetaModel, getProperties, getProperty, getProperty, getServletConfig, init, init, jspDestroy, jspInit, setMetaModel, setProperties, setProperty |
| Methods inherited from class javax.servlet.http.HttpServlet |
service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletContext, getServletInfo, getServletName, log, log |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.Servlet |
getServletInfo, service |
| Constructor Detail |
public JspMain()
| Method Detail |
public boolean doPreprocessing()
preprocessElements(MBase),
preprocessElements(Object)public void preprocessElements(ru.novosoft.uml.MBase modelElement)
modelElement - element modelElementpreprocessElements(Object),
doPreprocessing()public void preprocessElements(java.lang.Object modelElement)
modelElement - element modelElement.preprocessElements(MBase),
doPreprocessing()public com.innoq.generator.logging.ValidationMessage isValid(ru.novosoft.uml.MBase modelElement)
modelElement - element modelElement.preprocessElements(MBase),
doPreprocessing()public java.lang.String[] getTemplates(ru.novosoft.uml.MBase modelElement)
modelElement - element modelElement.
getPostprocessTemplates(),
getName()public java.lang.String[] getTemplates(java.lang.Object modelElement)
modelElement - element modelElement.
getPostprocessTemplates(),
getName()public abstract java.lang.String getName()
getName in class JspBaseJspBase.getElement()public java.lang.String[] getPostprocessTemplates()
getTemplates(MBase) have been executed.This is ideal for generating makefiles.
getTemplates(MBase)public boolean isModelChanged()
setModelChanged(boolean)public void setModelChanged(boolean pModelChanged)
pModelChanged - value of statusisModelChanged()public boolean canBeGenerated(ru.novosoft.uml.MBase modelElement)
true only
for classes and interfaces:
modelElement - Element to check for.
public final void addToPart(java.lang.String pKey,
java.lang.Object pElement)
JspBase.addToAttributeList(String, Object) instead
public final FileContext getContext()
JspBase.getAttributeList(String),
JspBase.addToAttributeList(String, Object)
public final void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
This method will be called by the container. Do not call it yourself!
service in class JspAbstractBasejavax.servlet.ServletException
java.io.IOExceptionpublic void removeFromElementsForGeneration(java.lang.Object pObject)
pObject - public void removeFromElementsForGeneration(java.util.Collection pCollection)
pCollection - public void addToElementsForGeneration(java.lang.Object pObject)
pObject - public void addToElementsForGeneration(java.util.Collection pCollection)
pCollection - public boolean isMainJSP()
isMainJSP in class JspAbstractBase
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
