Class 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
    • Constructor Detail

      • ConditionalToolElement

        public ConditionalToolElement​(ToolInfo toolInfo,
                                      Element element)
                               throws EoulsanException
        Instantiates a new tool conditional element.
        Parameters:
        toolInfo - the ToolInfo object
        element - the element
        Throws:
        EoulsanException - the eoulsan exception
    • Method Detail

      • getValidatedName

        public String getValidatedName()
        Description copied from interface: ToolElement
        Gets the name which respect Eoulsan's syntax.
        Specified by:
        getValidatedName in interface ToolElement
        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
      • setValue

        public void setValue​(String value)
        Description copied from interface: ToolElement
        Sets the value.
        Specified by:
        setValue in interface ToolElement
        Parameters:
        value - the value