Class ConditionalToolElement
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.galaxytools.elements.ConditionalToolElement
-
- All Implemented Interfaces:
ToolElement
public class ConditionalToolElement extends Object implements ToolElement
This class define a conditional tool element.- Since:
- 2.0
- Author:
- Sandrine Perrin
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPEThe Constant TYPE.-
Fields inherited from interface fr.ens.biologie.genomique.eoulsan.galaxytools.elements.ToolElement
SEP
-
-
Constructor Summary
Constructors Constructor Description ConditionalToolElement(ToolInfo toolInfo, Element element)Instantiates a new tool conditional element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Gets the name.StringgetShortName()Gets the short name.ToolElementgetToolElementSelected()Gets the tool parameter selected.Map<String,ToolElement>getToolElementsResult()Gets the tool parameters result.StringgetValidatedName()Gets the name which respect Eoulsan's syntax.StringgetValue()Gets the value.booleanisSet()Test if the value has been set (if not the default value)voidsetValue(String value)Sets the value.voidsetValues(Map<String,Parameter> stepParameters)Set the values.StringtoString()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
The Constant TYPE.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConditionalToolElement
public ConditionalToolElement(ToolInfo toolInfo, Element element) throws EoulsanException
Instantiates a new tool conditional element.- Parameters:
toolInfo- the ToolInfo objectelement- the element- Throws:
EoulsanException- the eoulsan exception
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:ToolElementGets the name.- Specified by:
getNamein interfaceToolElement- Returns:
- the name
-
getShortName
public String getShortName()
Description copied from interface:ToolElementGets the short name.- Specified by:
getShortNamein interfaceToolElement- Returns:
- the short name
-
getValidatedName
public String getValidatedName()
Description copied from interface:ToolElementGets the name which respect Eoulsan's syntax.- Specified by:
getValidatedNamein interfaceToolElement- Returns:
- the name
-
getToolElementSelected
public ToolElement getToolElementSelected()
Gets the tool parameter selected.- Returns:
- the tool parameter selected
-
getToolElementsResult
public Map<String,ToolElement> getToolElementsResult()
Gets the tool parameters result.- Returns:
- the tool parameters result
-
isSet
public boolean isSet()
Test if the value has been set (if not the default value)- Returns:
- true if the value has been set
-
getValue
public String getValue()
Description copied from interface:ToolElementGets the value.- Specified by:
getValuein interfaceToolElement- Returns:
- the value
-
setValue
public void setValue(String value)
Description copied from interface:ToolElementSets the value.- Specified by:
setValuein interfaceToolElement- Parameters:
value- the value
-
setValues
public void setValues(Map<String,Parameter> stepParameters) throws EoulsanException
Set the values.- Parameters:
stepParameters- step parameters- Throws:
EoulsanException- if an error occurs while setting the values
-
-