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 String
TYPE
The 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 String
getName()
Gets the name.String
getShortName()
Gets the short name.ToolElement
getToolElementSelected()
Gets the tool parameter selected.Map<String,ToolElement>
getToolElementsResult()
Gets the tool parameters result.String
getValidatedName()
Gets the name which respect Eoulsan's syntax.String
getValue()
Gets the value.boolean
isSet()
Test if the value has been set (if not the default value)void
setValue(String value)
Sets the value.void
setValues(Map<String,Parameter> stepParameters)
Set the values.String
toString()
-
-
-
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:ToolElement
Gets the name.- Specified by:
getName
in interfaceToolElement
- Returns:
- the name
-
getShortName
public String getShortName()
Description copied from interface:ToolElement
Gets the short name.- Specified by:
getShortName
in interfaceToolElement
- Returns:
- the short name
-
getValidatedName
public String getValidatedName()
Description copied from interface:ToolElement
Gets the name which respect Eoulsan's syntax.- Specified by:
getValidatedName
in 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:ToolElement
Gets the value.- Specified by:
getValue
in interfaceToolElement
- Returns:
- the value
-
setValue
public void setValue(String value)
Description copied from interface:ToolElement
Sets the value.- Specified by:
setValue
in 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
-
-