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 voidassociateWith(TemplateEngine engine)Templatecopy()StringgetContents()StringgetName()FilegetPath()TemplateTypegetType()booleanisInMemory()voidsave()voidsetContents(String text, boolean shouldParse)voidsetName(String value)voidsetType(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:
associateWithin interfaceTemplate- Throws:
TemplateException
-
getContents
public String getContents() throws IOException
- Specified by:
getContentsin interfaceTemplate- Throws:
IOException
-
setContents
public void setContents(String text, boolean shouldParse) throws TemplateException
- Specified by:
setContentsin interfaceTemplate- Throws:
TemplateException
-
getType
public TemplateType getType()
-
setType
public void setType(TemplateType value)
-
isInMemory
public boolean isInMemory()
- Specified by:
isInMemoryin interfaceTemplate
-
save
public void save() throws IOException- Specified by:
savein interfaceTemplate- Throws:
IOException
-
copy
public Template copy() throws IOException
- Specified by:
copyin interfaceTemplate- Throws:
IOException
-
-