eu.scape_project.xa.tw.tmpl
Class OperationCode
java.lang.Object
eu.scape_project.xa.tw.tmpl.Code
eu.scape_project.xa.tw.tmpl.OperationCode
public class OperationCode
- extends Code
Operation code that can be evaluated by the Velocity template
engine. Evaluation is performed by applying the Velocity context to the
source code content.
- Version:
- 0.3
- Author:
- shsdev https://github.com/shsdev
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OperationCode
public OperationCode(String filePath,
int opid)
throws IOException
- Parameters:
filePath
- opid
-
- Throws:
IOException
addResultElement
public void addResultElement(String resultElement)
- Parameters:
resultElement
- the resultElement to add
getResultElements
public ArrayList<String> getResultElements()
- Returns:
- the parameters
addOutFileItem
public void addOutFileItem(String outFileItem)
- Parameters:
outFileItem
- the outFileItem to add
getOutFileItems
public ArrayList<String> getOutFileItems()
- Returns:
- the parameters
put
public void put(String string,
List<String> listitem)
- Add a list of operations to the Velocity context
- Parameters:
string
- Keylistitem
- List of operations
addParameter
public void addParameter(String parameter)
- Parameters:
parameter
- the parameter to add
getOperationName
public String getOperationName()
- Returns:
- the operationName
setOperationName
public void setOperationName(String operationName)
- Parameters:
operationName
- the operationName to set
getParameters
public ArrayList<String> getParameters()
- Returns:
- the parameters
getParametersCsList
public String getParametersCsList()
- Returns:
- the parameter list
getOpid
public int getOpid()
- Returns:
- the opid
setOpid
public void setOpid(int opid)
- Parameters:
opid
- the opid to set
appendInputSection
public void appendInputSection(String code)
- Append code to the input section
- Parameters:
code
-
appendOutputSection
public void appendOutputSection(String code)
- Append code to the output section
- Parameters:
code
-
getInputSection
public String getInputSection()
- Returns:
- the inputSection
getOutputSection
public String getOutputSection()
- Returns:
- the outputSection
Copyright © 2013. All Rights Reserved.