Class FileTemplate
- java.lang.Object
-
- org.esa.snap.core.gpf.descriptor.template.FileTemplate
-
-
Constructor Summary
Constructors Constructor Description FileTemplate()
FileTemplate(TemplateEngine templateEngine)
FileTemplate(TemplateEngine templateEngine, String templateFileName)
FileTemplate(TemplateType templateType)
-
Method Summary
All Methods Instance Methods Concrete 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)
String
toString()
-
-
-
Constructor Detail
-
FileTemplate
public FileTemplate()
-
FileTemplate
public FileTemplate(TemplateType templateType)
-
FileTemplate
public FileTemplate(TemplateEngine templateEngine)
-
FileTemplate
public FileTemplate(TemplateEngine templateEngine, String templateFileName)
-
-
Method Detail
-
getContents
public String getContents() throws IOException
- Specified by:
getContents
in interfaceTemplate
- Throws:
IOException
-
setContents
public void setContents(String text, boolean shouldParse) throws TemplateException
- Specified by:
setContents
in interfaceTemplate
- Throws:
TemplateException
-
associateWith
public void associateWith(TemplateEngine engine) throws TemplateException
- Specified by:
associateWith
in interfaceTemplate
- Throws:
TemplateException
-
getType
public TemplateType getType()
-
setType
public void setType(TemplateType value)
-
isInMemory
public boolean isInMemory()
- Specified by:
isInMemory
in interfaceTemplate
-
save
public void save() throws IOException
- Specified by:
save
in interfaceTemplate
- Throws:
IOException
-
copy
public Template copy() throws IOException
- Specified by:
copy
in interfaceTemplate
- Throws:
IOException
-
-