Constructor and Description |
---|
MemoryTemplate() |
MemoryTemplate(TemplateEngine templateEngine) |
MemoryTemplate(TemplateEngine templateEngine,
String templateName) |
MemoryTemplate(TemplateType templateType) |
Modifier and Type | Method and Description |
---|---|
void |
associateWith(TemplateEngine engine) |
Template |
copy() |
String |
getContents() |
String |
getName() |
File |
getPath() |
TemplateType |
getType() |
boolean |
isInMemory() |
void |
save() |
void |
setContents(String text,
boolean shouldParse) |
void |
setName(String value) |
void |
setType(TemplateType value) |
public MemoryTemplate()
public MemoryTemplate(TemplateType templateType)
public MemoryTemplate(TemplateEngine templateEngine)
public MemoryTemplate(TemplateEngine templateEngine, String templateName)
public void associateWith(TemplateEngine engine) throws TemplateException
associateWith
in interface Template
TemplateException
public String getContents() throws IOException
getContents
in interface Template
IOException
public void setContents(String text, boolean shouldParse) throws TemplateException
setContents
in interface Template
TemplateException
public TemplateType getType()
public void setType(TemplateType value)
public boolean isInMemory()
isInMemory
in interface Template
public void save() throws IOException
save
in interface Template
IOException
public Template copy() throws IOException
copy
in interface Template
IOException
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.