|
|
|||||||||
| 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
Base class for all template classes. It provides some hooks to control the generation process.
In particular you may specify the name of the file to generate by overwriting the methods
getPrefix(char), getPostfix(), getPath(), and getFilename().
Additionally you may access the current model element through getElement() and the current
metamodel through JspAbstractBase.getMetaModel().
JspMain,
Serialized Form| Field Summary |
| Fields inherited from class com.innoq.generator.jsp.JspAbstractBase |
TRANSFORMATION_PROPERTIES_KEY |
| Constructor Summary | |
JspBase()
|
|
| Method Summary | |
void |
addToAttributeList(java.lang.String key,
java.lang.Object object)
Adds an object to a List stored under a key. |
java.lang.Object |
getAttribute(java.lang.String key)
Retrives an object using the key |
java.util.List |
getAttributeList(java.lang.String key)
Returns a List of objects stored under a specific key
using the method addToAttributeList(String, Object). |
java.lang.String |
getDirectory()
Returns the directory you have defined as output directory. |
ru.novosoft.uml.MBase |
getElement()
Returns the current model element. |
java.lang.String |
getFileExtension()
Returns the file extension. |
java.lang.String |
getFilename()
Creates the fully qualified filename. |
java.lang.String |
getName()
Returns the name of the current model element. |
java.lang.String |
getName(ru.novosoft.uml.MBase modelElement)
Returns the name of a given model element. |
java.lang.String |
getPath()
Returns the complete path: |
java.lang.String |
getPath(char pSeparator)
Returns the complete path: |
java.lang.String |
getPath(char pSeparator,
ru.novosoft.uml.MBase modelElement)
Returns the complete path: |
java.lang.String |
getPostfix()
Returns the postfix for the current model element. |
java.lang.String |
getPostfix(char pSeparator)
Returns the postfix for the current model element. |
java.lang.String |
getPostfix(char pSeparator,
ru.novosoft.uml.MBase modelElement)
Returns the postfix for a given model element. |
java.lang.String |
getPrefix()
Returns the prefix for the current model element. |
java.lang.String |
getPrefix(char pSeparator)
Returns the postfix for the current model element. |
java.lang.String |
getPrefix(char pSeparator,
ru.novosoft.uml.MBase modelElement)
Returns the prefix for a given model element. |
ru.novosoft.uml.MBase |
getRoot()
Returns the root model element. |
void |
setAttribute(java.lang.String key,
java.lang.Object object)
Stores an object using a key. |
| Methods inherited from class com.innoq.generator.jsp.JspAbstractBase |
_jspService, addProperties, destroy, getMetaModel, getProperties, getProperty, getProperty, getServletConfig, init, init, isMainJSP, jspDestroy, jspInit, service, 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 JspBase()
| Method Detail |
public final void addToAttributeList(java.lang.String key,
java.lang.Object object)
List stored under a key. If the List
does not exist yet, it is created.
key - Key a List of objects shall be stored underobject - Object that shall be appended to the list of objects
stored under keygetAttributeList(String)public final java.util.List getAttributeList(java.lang.String key)
List of objects stored under a specific key
using the method addToAttributeList(String, Object).
key - key of the object list
java.lang.ClassCastException - if a different Object than a List was stores
as attribute.addToAttributeList(String, Object)
public final void setAttribute(java.lang.String key,
java.lang.Object object)
key - the keyobject - the object to store
java.lang.NullPointerException - if key or value are nullgetAttribute(String)public final java.lang.Object getAttribute(java.lang.String key)
key - the key
java.lang.NullPointerException - if key or value are nullsetAttribute(String, Object)public java.lang.String getFilename()
getFilename in class JspAbstractBasegetDirectory(),
getPath(),
getName(),
getFileExtension()public java.lang.String getName()
getName in class JspAbstractBasegetElement()public java.lang.String getName(ru.novosoft.uml.MBase modelElement)
getMetaModel().getName(modelElement).
modelElement - Model element.
getName()public ru.novosoft.uml.MBase getElement()
getName()public ru.novosoft.uml.MBase getRoot()
public java.lang.String getFileExtension()
java.getFilename()public java.lang.String getDirectory()
getFilename()public java.lang.String getPrefix(char pSeparator)
pSeparator - Separator to be used.getPath(char, MBase)public java.lang.String getPostfix(char pSeparator)
pSeparator - Separator to be used.getPath(char, MBase)public java.lang.String getPath()
getPath(char, MBase)public java.lang.String getPostfix()
getPath(char, MBase)public java.lang.String getPrefix()
getPath(char, MBase)public java.lang.String getPath(char pSeparator)
getFilename()
public java.lang.String getPath(char pSeparator,
ru.novosoft.uml.MBase modelElement)
getFilename()
public java.lang.String getPostfix(char pSeparator,
ru.novosoft.uml.MBase modelElement)
pSeparator - Separator to be used.modelElement - Model element
public java.lang.String getPrefix(char pSeparator,
ru.novosoft.uml.MBase modelElement)
pSeparator - Separator to be used.modelElement - Model element
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
