Class IntegerParameterToolElement
- 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.TextParameterToolElement
-
- fr.ens.biologie.genomique.eoulsan.galaxytools.elements.IntegerParameterToolElement
-
- All Implemented Interfaces:
ToolElement
public class IntegerParameterToolElement extends TextParameterToolElement
This class define an integer 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 IntegerParameterToolElement(ToolInfo toolInfo, Element param)
Instantiates a new integer tool element parameter.IntegerParameterToolElement(ToolInfo toolInfo, Element param, String nameSpace)
Instantiates a new integer tool element parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isParameterValueValid()
Test if the parameter value is validvoid
setValue(String value)
Sets the value.String
toString()
-
Methods inherited from class fr.ens.biologie.genomique.eoulsan.galaxytools.elements.TextParameterToolElement
getValue, isSet
-
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
-
-
Constructor Detail
-
IntegerParameterToolElement
public IntegerParameterToolElement(ToolInfo toolInfo, Element param) throws EoulsanException
Instantiates a new integer tool element parameter.- Parameters:
toolInfo
- the ToolInfo objectparam
- the parameter- Throws:
EoulsanException
- if an error occurs while setting the value
-
IntegerParameterToolElement
public IntegerParameterToolElement(ToolInfo toolInfo, Element param, String nameSpace) throws EoulsanException
Instantiates a new integer tool element parameter.- Parameters:
toolInfo
- the ToolInfo objectparam
- the parameternameSpace
- the name space- Throws:
EoulsanException
- if an error occurs while setting the value
-
-
Method Detail
-
isParameterValueValid
public boolean isParameterValueValid()
Description copied from class:AbstractParameterToolElement
Test if the parameter value is valid- Overrides:
isParameterValueValid
in classTextParameterToolElement
- Returns:
- true if the paramter value is valid
-
setValue
public void setValue(String value) throws EoulsanException
Description copied from interface:ToolElement
Sets the value.- Specified by:
setValue
in interfaceToolElement
- Overrides:
setValue
in classTextParameterToolElement
- Parameters:
value
- the value- Throws:
EoulsanException
- the eoulsan exception
-
toString
public String toString()
- Overrides:
toString
in classAbstractToolElement
-
-