Class ToolElementFactory


  • public class ToolElementFactory
    extends Object
    This class define a factory for ToolElement objects.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • ToolElementFactory

        public ToolElementFactory()
    • Method Detail

      • newToolElement

        public static ToolElement newToolElement​(ToolInfo toolInfo,
                                                 Element param)
                                          throws EoulsanException
        Gets the instance tool element.
        Parameters:
        toolInfo - ToolInfo object
        param - the parameter
        Returns:
        the instance tool element
        Throws:
        EoulsanException - if an error occurs while creating ToolElement
      • newToolElement

        public static ToolElement newToolElement​(ToolInfo toolInfo,
                                                 Element tag,
                                                 String nameSpace)
                                          throws EoulsanException
        Gets the instance tool element.
        Parameters:
        toolInfo - ToolInfo object
        tag - the parameter
        nameSpace - the name space
        Returns:
        the instance tool element
        Throws:
        EoulsanException - if an error occurs while creating ToolElement