Class BooleanParameterToolElement
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.galaxytools.elements.AbstractToolElement
-
- fr.ens.biologie.genomique.eoulsan.galaxytools.elements.AbstractParameterToolElement
-
- fr.ens.biologie.genomique.eoulsan.galaxytools.elements.BooleanParameterToolElement
-
- All Implemented Interfaces:
ToolElement
public class BooleanParameterToolElement extends AbstractParameterToolElement
This class define a boolean tool element parameter.- Since:
- 2.0
- Author:
- Sandrine Perrin
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE
The Constant TYPE.-
Fields inherited from class fr.ens.biologie.genomique.eoulsan.galaxytools.elements.AbstractToolElement
COMMA
-
Fields inherited from interface fr.ens.biologie.genomique.eoulsan.galaxytools.elements.ToolElement
SEP
-
-
Constructor Summary
Constructors Constructor Description BooleanParameterToolElement(ToolInfo toolInfo, Element param)
Instantiates a new boolean tool parameter.BooleanParameterToolElement(ToolInfo toolInfo, Element param, String nameSpace)
Instantiates a new boolean tool parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Gets the value.boolean
isParameterValueValid()
Test if the parameter value is validboolean
isSet()
Checks if the value has been set (is not the default value).void
setValue(String value)
Sets the value.String
toString()
-
Methods inherited from class fr.ens.biologie.genomique.eoulsan.galaxytools.elements.AbstractToolElement
equals, getHelp, getLabel, getName, getShortName, getType, getValidatedName, hashCode, isOptional
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
The Constant TYPE.- See Also:
- Constant Field Values
-
-
Method Detail
-
isParameterValueValid
public boolean isParameterValueValid()
Description copied from class:AbstractParameterToolElement
Test if the parameter value is valid- Specified by:
isParameterValueValid
in classAbstractParameterToolElement
- Returns:
- true if the paramter value is valid
-
getValue
public String getValue()
Description copied from interface:ToolElement
Gets the value.- Returns:
- the value
-
isSet
public boolean isSet()
Description copied from class:AbstractParameterToolElement
Checks if the value has been set (is not the default value).- Specified by:
isSet
in classAbstractParameterToolElement
- Returns:
- true if the value has been set
-
setValue
public void setValue(String value) throws EoulsanException
Description copied from interface:ToolElement
Sets the value.- Parameters:
value
- the value- Throws:
EoulsanException
- the eoulsan exception
-
toString
public String toString()
- Overrides:
toString
in classAbstractToolElement
-
-