org.openphacts.nextprot
Class TemplateAssembler

java.lang.Object
  extended by org.openphacts.nextprot.TemplateAssembler

public class TemplateAssembler
extends Object


Constructor Summary
TemplateAssembler()
           
 
Method Summary
static void main(String[] args)
           
 void processTemplates(File templDir)
          Process the template(s).
 void processTemplates(File templDir, File outDir, Map context)
          Process the template(s).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateAssembler

public TemplateAssembler()
Method Detail

processTemplates

public void processTemplates(File templDir,
                             File outDir,
                             Map context)
                      throws TemplateException
Process the template(s).

Parameters:
templDir - a directory or file where the template is located.
outDir - a directory or file where the output should be written to. This can be null (current directory is used instead)
context - a map of properties for use inside the velocity context.
Throws:
TemplateException - signals abnormal behavior.

processTemplates

public void processTemplates(File templDir)
                      throws TemplateException
Process the template(s).

Parameters:
templDir - a directory or file where the template is located.
Throws:
TemplateException - signals abnormal behavior.

main

public static void main(String[] args)


Copyright © 2012. All Rights Reserved.