eu.scape_project.xa.tw.tmpl
Class OperationCode

java.lang.Object
  extended by eu.scape_project.xa.tw.tmpl.Code
      extended by 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

Constructor Summary
OperationCode(String filePath, int opid)
           
 
Method Summary
 void addOutFileItem(String outFileItem)
           
 void addParameter(String parameter)
           
 void addResultElement(String resultElement)
           
 void appendInputSection(String code)
          Append code to the input section
 void appendOutputSection(String code)
          Append code to the output section
 String getInputSection()
           
 String getOperationName()
           
 int getOpid()
           
 ArrayList<String> getOutFileItems()
           
 String getOutputSection()
           
 ArrayList<String> getParameters()
           
 String getParametersCsList()
           
 ArrayList<String> getResultElements()
           
 void put(String string, List<String> listitem)
          Add a list of operations to the Velocity context
 void setOperationName(String operationName)
           
 void setOpid(int opid)
           
 
Methods inherited from class eu.scape_project.xa.tw.tmpl.Code
evaluate, getCode, getCtx, put, put, setCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationCode

public OperationCode(String filePath,
                     int opid)
              throws IOException
Parameters:
filePath -
opid -
Throws:
IOException
Method Detail

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 - Key
listitem - 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.