Class MemoryTemplate
- java.lang.Object
-
- org.esa.snap.core.gpf.descriptor.template.MemoryTemplate
-
-
Constructor Summary
Constructors Constructor Description MemoryTemplate()
MemoryTemplate(TemplateEngine templateEngine)
MemoryTemplate(TemplateEngine templateEngine, String templateName)
MemoryTemplate(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)
-
-
-
Constructor Detail
-
MemoryTemplate
public MemoryTemplate()
-
MemoryTemplate
public MemoryTemplate(TemplateType templateType)
-
MemoryTemplate
public MemoryTemplate(TemplateEngine templateEngine)
-
MemoryTemplate
public MemoryTemplate(TemplateEngine templateEngine, String templateName)
-
-
Method Detail
-
associateWith
public void associateWith(TemplateEngine engine) throws TemplateException
- Specified by:
associateWith
in interfaceTemplate
- Throws:
TemplateException
-
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
-
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
-
-