|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.template.TemplateBase
org.openbp.cockpit.template.standard.JavaSrcTemplate
org.openbp.cockpit.template.standard.ActivitySrcTemplate
public class ActivitySrcTemplate
Activity implementation source code template.
| Field Summary | |
|---|---|
protected JavaActivityItem |
activity
Activity item |
protected java.lang.StringBuffer |
inputComment
Method comment that describes the input sockets/parameters |
protected java.util.List |
inputParamAccess
Code for input parameter access |
protected java.lang.StringBuffer |
outputComment
Method comment that describes the output sockets/parameters |
protected java.util.List |
outputParamAccess
Code for output parameter access |
protected java.lang.String |
standardExitSocket
Name of the standard exit socket, if any |
| Constructor Summary | |
|---|---|
ActivitySrcTemplate()
Constructor. |
|
| Method Summary | |
|---|---|
void |
generate(java.lang.Object[] templateArgs)
This method is called when the template executes. |
protected java.lang.String |
makeParamName(java.lang.String name)
Returns the name of the symbolic constant for the specified parameter. |
protected java.lang.String |
makeSocketName(java.lang.String name)
Returns the name of the symbolic constant for the specified socket. |
protected void |
prepareSocketInfo(JavaTemplateWriter w,
java.util.List socketList)
Collects data to build the list of symbolic constants ('socketConstants' and 'paramConstants' placeholders) and input and output socket/parameter explanations (goes into the class comment). |
protected void |
printClassCode(JavaTemplateWriter w)
Prints the class code. |
protected void |
printClassComment(JavaTemplateWriter w)
Prints the class comment. |
protected void |
printFile(JavaTemplateWriter w)
Performs the generation. |
protected void |
printImplemenationCodeInsideTag(JavaTemplateWriter w)
Prints the class implementation code inside the {{*Handler implementation tag. |
protected void |
printImplemenationCodeOutsideTag(JavaTemplateWriter w)
Prints the class implementation code outside the {{*Handler implementation tag. |
| Methods inherited from class org.openbp.cockpit.template.standard.JavaSrcTemplate |
|---|
adverb, createComment, createComment, determineJavaType, errMsg, errMsg, extractUnqualifiedName, printFileHeader, removeDot, singular |
| Methods inherited from class org.openbp.common.template.TemplateBase |
|---|
addResultFileInfo, callTemplate, getOutputDir, getProperties, getProperty, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JavaActivityItem activity
protected java.lang.StringBuffer inputComment
protected java.lang.StringBuffer outputComment
protected java.util.List inputParamAccess
protected java.util.List outputParamAccess
protected java.lang.String standardExitSocket
| Constructor Detail |
|---|
public ActivitySrcTemplate()
| Method Detail |
|---|
public void generate(java.lang.Object[] templateArgs)
throws java.lang.Exception
generate in class TemplateBasetemplateArgs - Template arguments provided by the caller (null in this case)
java.lang.Exception - On error
protected void printFile(JavaTemplateWriter w)
throws java.lang.Exception
w - Source file writer
java.lang.Exception - On error
protected void printClassComment(JavaTemplateWriter w)
throws java.lang.Exception
w - Source file writer
java.lang.Exception - On error
protected void printClassCode(JavaTemplateWriter w)
throws java.lang.Exception
w - Source file writer
java.lang.Exception - On error
protected void printImplemenationCodeOutsideTag(JavaTemplateWriter w)
throws java.lang.Exception
w - Source file writer
java.lang.Exception - On error
protected void printImplemenationCodeInsideTag(JavaTemplateWriter w)
throws java.lang.Exception
w - Source file writer
java.lang.Exception - On error
protected void prepareSocketInfo(JavaTemplateWriter w,
java.util.List socketList)
w - Source file writersocketList - Socket listprotected java.lang.String makeSocketName(java.lang.String name)
name - Name
protected java.lang.String makeParamName(java.lang.String name)
name - Name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||