Class AntTaskLink

  • All Implemented Interfaces:
    GraphObject, Link
    Direct Known Subclasses:
    SubantTaskLink

    public class AntTaskLink
    extends AntLink
    A link representing a call by a task such like ant, runtarget, etc. Instances of the class will have a mandatory task name and may have some defined parameters.
    Author:
    Christophe Labouisse
    • Constructor Detail

      • AntTaskLink

        public AntTaskLink​(String name,
                           Graph graph,
                           Node startNode,
                           Node endNode,
                           String taskName)
        Parameters:
        name - String
        graph - Graph
        startNode - Node
        endNode - Node
        taskName - String
    • Method Detail

      • getTaskName

        public final String getTaskName()
        Returns:
        Returns the taskName.
      • setParameter

        public final void setParameter​(String key,
                                       String value)
        Sets an attribute for the link.
        Parameters:
        key - String
        value - String
      • getParameter

        public final String getParameter​(String key)
        Return the value of a parameter or null if not defined.
        Parameters:
        key - String
        Returns:
        String
      • getPropertyFiles

        public final String[] getPropertyFiles()
        Returns an array of property files set for this link.
        Returns:
        String[]
      • addPropertyFile

        public final void addPropertyFile​(String fileName)
        Add a new property file to the current list.
        Parameters:
        fileName - String
      • getParameterMap

        public final Map<String,​String> getParameterMap()
        Returns a readonly version of the parameter map.
        Returns:
        a read only map of the parameters.