public class TemplateParameterDescriptor extends ToolParameterDescriptor
DefaultParameterDescriptor.XStreamConverterparameterType| Constructor and Description |
|---|
TemplateParameterDescriptor() |
TemplateParameterDescriptor(String name,
Class<?> type) |
TemplateParameterDescriptor(TemplateParameterDescriptor object)
Copy constructor
|
TemplateParameterDescriptor(ToolParameterDescriptor object)
Conversion constructor from a regular parameter
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameterDescriptor(ToolParameterDescriptor descriptor)
Adds a parameter descriptor to this template parameter
|
void |
copyFrom(TemplateParameterDescriptor source) |
String |
executeTemplate(Map<String,Object> params)
Transforms (or executes) the template of this instance given a set of parameters.
|
TemplateContext |
getLastContext()
Returns the last scripting context resulted from the execution of the scripting engine
|
File |
getOutputFile() |
List<ToolParameterDescriptor> |
getParameterDescriptors()
Returns the list of the parameter descriptors of this instance
|
Template |
getTemplate()
Returns the template of this object.
|
void |
removeParameterDescriptor(ToolParameterDescriptor descriptor)
Removes a parameter descriptor from this template parameter
|
void |
setOutputFile(File outputFile)
Sets the output file of this template parameter, after the template is parsed.
|
void |
setTemplate(Template template)
Sets the template of this parameter
|
void |
setTemplateEngine(TemplateEngine engine)
Sets the scripting engine for this parameter and associates its template, if any,
with the engine.
|
copyFrom, getAttribute, getDefaultTypedValue, getParameterType, isParameter, isTemplateAfter, isTemplateBefore, isTemplateParameter, setAttribute, setParameterTypegetAlias, getCondition, getConverterClass, getDataMemberDescriptors, getDataType, getDefaultValue, getDescription, getDomConverterClass, getFormat, getInterval, getItemAlias, getLabel, getName, getPattern, getRasterDataNodeClass, getStructureMemberDescriptors, getUnit, getValidatorClass, getValueSet, isDeprecated, isNotEmpty, isNotNull, isSimple, isStructure, isStructure, setAlias, setCondition, setConverterClass, setDataType, setDefaultValue, setDeprecated, setDescription, setDomConverterClass, setFormat, setInterval, setItemAlias, setLabel, setName, setNotEmpty, setNotNull, setPattern, setRasterDataNodeClass, setUnit, setValidatorClass, setValueSetpublic TemplateParameterDescriptor()
public TemplateParameterDescriptor(ToolParameterDescriptor object)
object - The source parameterpublic TemplateParameterDescriptor(TemplateParameterDescriptor object)
object - The template parameter to be copied.public void addParameterDescriptor(ToolParameterDescriptor descriptor)
public void removeParameterDescriptor(ToolParameterDescriptor descriptor)
public List<ToolParameterDescriptor> getParameterDescriptors()
public void setTemplateEngine(TemplateEngine engine) throws TemplateException
engine - The scripting engineTemplateExceptionpublic TemplateContext getLastContext()
public void setTemplate(Template template) throws TemplateException
template - The template objectTemplateExceptionpublic Template getTemplate()
public String executeTemplate(Map<String,Object> params) throws TemplateException
params - A collection of parameter valuesTemplateExceptionpublic File getOutputFile()
public void setOutputFile(File outputFile)
outputFile - output file of this template parameterpublic void copyFrom(TemplateParameterDescriptor source)
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.