public abstract class VelocityRenderer extends Object implements Visitor
| Modifier and Type | Class and Description |
|---|---|
protected class |
VelocityRenderer.PathContainsFilter |
| Modifier and Type | Field and Description |
|---|---|
protected String |
encoding |
protected String |
fileName |
protected File |
outputDir |
protected File |
staticDir |
| Constructor and Description |
|---|
VelocityRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyResources() |
protected org.apache.velocity.VelocityContext |
createVelocityContext(Node tree) |
protected org.apache.velocity.app.VelocityEngine |
createVelocityEngine() |
protected org.apache.velocity.Template |
createVelocityTemplate() |
protected void |
generateMainFile(Node tree) |
String |
getEncoding() |
String |
getFileName() |
protected Collection<File> |
getFilesToCopy() |
File |
getOutputDir() |
protected abstract String |
getTemplatePath() |
protected Properties |
getVelocityProperties() |
protected abstract String |
getVelocityPropertiesPath() |
void |
setEncoding(String encoding) |
void |
setFileName(String fileName) |
void |
setOutputDir(File outputDir) |
void |
visit(Node tree) |
protected final File staticDir
protected File outputDir
protected String fileName
protected String encoding
public File getOutputDir()
public void setOutputDir(File outputDir)
public String getFileName()
public void setFileName(String fileName)
public String getEncoding()
public void setEncoding(String encoding)
public void visit(Node tree) throws VisitException
visit in interface VisitorVisitExceptionprotected void generateMainFile(Node tree) throws IOException, UnsupportedEncodingException
protected org.apache.velocity.Template createVelocityTemplate()
throws IOException,
org.apache.velocity.exception.VelocityException
IOExceptionorg.apache.velocity.exception.VelocityExceptionprotected abstract String getTemplatePath()
protected org.apache.velocity.VelocityContext createVelocityContext(Node tree)
protected org.apache.velocity.app.VelocityEngine createVelocityEngine()
throws IOException,
org.apache.velocity.exception.VelocityException
IOExceptionorg.apache.velocity.exception.VelocityExceptionprotected Properties getVelocityProperties() throws IOException
IOExceptionprotected abstract String getVelocityPropertiesPath()
protected void copyResources()
throws IOException
IOExceptionprotected Collection<File> getFilesToCopy()
Copyright © 2011-2019. All Rights Reserved.