public class TemplateFile extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
contents |
protected TemplateEngine |
engine |
protected String |
fileName |
protected TemplateType |
type |
Constructor and Description |
---|
TemplateFile() |
TemplateFile(TemplateEngine templateEngine) |
TemplateFile(TemplateEngine templateEngine,
String templateFileName) |
TemplateFile(TemplateType templateType) |
Modifier and Type | Method and Description |
---|---|
void |
associateWith(TemplateEngine engine) |
TemplateFile |
copy() |
static TemplateFile |
fromFile(String path) |
String |
getContents() |
String |
getExtension() |
String |
getFileName() |
File |
getTemplatePath() |
TemplateType |
getType() |
void |
save() |
void |
setContents(String text,
boolean shouldParse) |
void |
setFileName(String value) |
void |
setType(TemplateType value) |
String |
toString() |
protected String fileName
protected String contents
protected TemplateType type
protected TemplateEngine engine
public TemplateFile()
public TemplateFile(TemplateType templateType)
public TemplateFile(TemplateEngine templateEngine)
public TemplateFile(TemplateEngine templateEngine, String templateFileName)
public static TemplateFile fromFile(String path) throws TemplateException, IOException
TemplateException
IOException
public void associateWith(TemplateEngine engine) throws TemplateException
TemplateException
public String getContents() throws IOException
IOException
public void setContents(String text, boolean shouldParse) throws TemplateException
TemplateException
public String getFileName()
public void setFileName(String value)
public File getTemplatePath()
public TemplateType getType()
public void setType(TemplateType value)
public String getExtension()
public void save() throws IOException
IOException
public TemplateFile copy() throws IOException
IOException
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.