eu.scape_project.xa.tw.tmpl
Class ServiceXml
java.lang.Object
eu.scape_project.xa.tw.tmpl.Code
eu.scape_project.xa.tw.tmpl.ServiceXml
public class ServiceXml
- extends Code
Template-based service code generator.
The service code 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 |
ServiceXml(String filePath)
Constructor for a service code instance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceXml
public ServiceXml(String filePath)
throws IOException
- Constructor for a service code instance
- Parameters:
filePath
- Path to template file
- Throws:
IOException
- Exception while reading the template file
getOperations
public List<ServiceXmlOp> getOperations()
- Returns:
- the operationSnippets
addOperation
public void addOperation(ServiceXmlOp servxmlop)
- Parameters:
servxmlop
- the operationSnippets to add
put
public void put(String string,
List<ServiceXmlOp> operations)
- Add a list of operations to the Velocity context
- Parameters:
string
- Keyoperations
- List of operations
create
public void create(String targetFilePath)
throws IOException
- Parameters:
targetFilePath
-
- Throws:
IOException
Copyright © 2013. All Rights Reserved.