net.ggtools.grand.ant
Class SubantTaskLink

java.lang.Object
  extended by net.ggtools.grand.graph.AttributeManager
      extended by net.ggtools.grand.graph.LinkImpl
          extended by net.ggtools.grand.ant.AntLink
              extended by net.ggtools.grand.ant.AntTaskLink
                  extended by net.ggtools.grand.ant.SubantTaskLink
All Implemented Interfaces:
GraphObject, Link

public class SubantTaskLink
extends AntTaskLink

A link representing a call by a task such like subant. Instances of this class may hold a list of directories. This list will be used to create a link for the genericantfile version of subant.

Author:
Christophe Labouisse

Field Summary
 
Fields inherited from interface net.ggtools.grand.graph.Link
ATTR_CONDITIONAL_LINK, ATTR_WEAK_LINK
 
Fields inherited from interface net.ggtools.grand.graph.GraphObject
ATTR_ALL, ATTR_NONE
 
Constructor Summary
SubantTaskLink(java.lang.String name, Graph graph, Node startNode, Node endNode, java.lang.String taskName)
           
 
Method Summary
 void accept(LinkVisitor visitor)
          Accepts a visitor.
 void addDirectory(java.lang.String newDir)
          Add a directory to the list of directory used when applying the generic ant file.
 java.util.Collection getDirectories()
          Gets the list of directories to apply the generic ant file onto.
 
Methods inherited from class net.ggtools.grand.ant.AntTaskLink
getParameter, getParameterMap, getTaskName, setParameter
 
Methods inherited from class net.ggtools.grand.graph.LinkImpl
getEndNode, getGraph, getName, getStartNode, toString
 
Methods inherited from class net.ggtools.grand.graph.AttributeManager
clearAttributes, getAttributes, hasAttributes, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.ggtools.grand.graph.GraphObject
clearAttributes, getAttributes, hasAttributes, setAttributes
 

Constructor Detail

SubantTaskLink

public SubantTaskLink(java.lang.String name,
                      Graph graph,
                      Node startNode,
                      Node endNode,
                      java.lang.String taskName)
Parameters:
name -
graph -
startNode -
endNode -
taskName -
Method Detail

accept

public void accept(LinkVisitor visitor)
Description copied from interface: Link
Accepts a visitor. The implementation must call the appropriate visitLink method.

Specified by:
accept in interface Link
Overrides:
accept in class AntTaskLink

addDirectory

public void addDirectory(java.lang.String newDir)
Add a directory to the list of directory used when applying the generic ant file.

Parameters:
newDir -

getDirectories

public java.util.Collection getDirectories()
Gets the list of directories to apply the generic ant file onto.

Returns:
a read-only list of directories.


Copyright © 2004-2005 ggTools. All Rights Reserved.