net.sf.csutils.groovy
Class Main

java.lang.Object
  extended by net.sf.csutils.groovy.Main

public class Main
extends Object

Main class of a template processor.


Nested Class Summary
static class Main.BooleanOpt
           
static class Main.FileOpt
           
static class Main.Opt
           
static class Main.StringOpt
           
static class Main.TemplateType
           
static class Main.URLOpt
           
static class Main.UsageException
           
 
Constructor Summary
Main()
           
 
Method Summary
 String getCsPassword()
           
 String getCsUrl()
           
 String getCsUser()
           
protected  Reader getInput()
           
 String getInputEncoding()
           
 File getInputFile()
           
 URL getInputURL()
           
 List<Main.Opt> getOptions()
           
 String getOutputEncoding()
           
 File getOutputFile()
           
protected  Writer getOutputWriter()
           
protected  groovy.text.TemplateEngine getTemplateEngine()
           
 Main.TemplateType getTemplateType()
           
static void main(Main pMain, String[] pArgs)
           
static void main(String[] pArgs)
           
 void run()
           
 void setCsPassword(String pPassword)
           
 void setCsUrl(String pUrl)
           
 void setCsUser(String pUser)
           
 void setInputEncoding(String pInputEncoding)
           
 void setInputFile(File pInputFile)
           
 void setInputURL(URL pInputURL)
           
 void setOutputEncoding(String pOutputEncoding)
           
 void setOutputFile(File pOutputFile)
           
 void setTemplateType(Main.TemplateType templateType)
           
protected  void usage(String pMessage, List<Main.Opt> pOptions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

getTemplateType

public Main.TemplateType getTemplateType()

setTemplateType

public void setTemplateType(Main.TemplateType templateType)

getInputFile

public File getInputFile()

setInputFile

public void setInputFile(File pInputFile)

getOutputFile

public File getOutputFile()

setOutputFile

public void setOutputFile(File pOutputFile)

getInputURL

public URL getInputURL()

setInputURL

public void setInputURL(URL pInputURL)

getInputEncoding

public String getInputEncoding()

setInputEncoding

public void setInputEncoding(String pInputEncoding)

getOutputEncoding

public String getOutputEncoding()

setOutputEncoding

public void setOutputEncoding(String pOutputEncoding)

getCsUrl

public String getCsUrl()

setCsUrl

public void setCsUrl(String pUrl)

getCsUser

public String getCsUser()

setCsUser

public void setCsUser(String pUser)

getCsPassword

public String getCsPassword()

setCsPassword

public void setCsPassword(String pPassword)

getOptions

public List<Main.Opt> getOptions()

usage

protected void usage(String pMessage,
                     List<Main.Opt> pOptions)

getOutputWriter

protected Writer getOutputWriter()
                          throws IOException
Throws:
IOException

getInput

protected Reader getInput()
                   throws IOException
Throws:
IOException

getTemplateEngine

protected groovy.text.TemplateEngine getTemplateEngine()
                                                throws Exception
Throws:
Exception

run

public void run()
         throws Exception
Throws:
Exception

main

public static void main(String[] pArgs)
                 throws Exception
Throws:
Exception

main

public static void main(Main pMain,
                        String[] pArgs)
                 throws Exception
Throws:
Exception


Copyright © 2009-2010. All Rights Reserved.