Interface Template
-
- All Known Implementing Classes:
FileTemplate
,MemoryTemplate
public interface Template
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getName
String getName()
-
setName
void setName(String value)
-
associateWith
void associateWith(TemplateEngine engine) throws TemplateException
- Throws:
TemplateException
-
getContents
String getContents() throws IOException
- Throws:
IOException
-
setContents
void setContents(String text, boolean shouldParse) throws TemplateException
- Throws:
TemplateException
-
getType
TemplateType getType()
-
setType
void setType(TemplateType value)
-
isInMemory
boolean isInMemory()
-
copy
Template copy() throws IOException
- Throws:
IOException
-
save
void save() throws IOException
- Throws:
IOException
-
getPath
File getPath()
-
-