net.ggtools.grand.ant
Class AntGraph

java.lang.Object
  extended by net.ggtools.grand.graph.GraphImpl
      extended by net.ggtools.grand.ant.AntGraph
All Implemented Interfaces:
Graph, NodeContainer

public class AntGraph
extends GraphImpl

A Graph implementation specialized in Ant build files.

Author:
Christophe Labouisse

Constructor Summary
AntGraph(org.apache.tools.ant.Project project)
          Creates a new graph.
 
Method Summary
 SubantTaskLink createSubantTaskLink(java.lang.String linkName, Node startNode, Node endNode, java.lang.String taskName)
          Creates a link representing a call by a subant task.
 AntTaskLink createTaskLink(java.lang.String linkName, Node startNode, Node endNode, java.lang.String taskName)
          Creates a link representing a call by a task like ant.
protected  GraphElementFactory getFactory()
          Returns the current element factory creating one if none exists yet.
 org.apache.tools.ant.Project getProject()
          Returns the project.
 
Methods inherited from class net.ggtools.grand.graph.GraphImpl
createLink, createNode, createNode, createSubGraph, getName, getNode, getNodes, getStartNode, getSubGraph, getSubgraphs, hasNode, hasSubGraph, setStartNode, unlinkNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntGraph

public AntGraph(org.apache.tools.ant.Project project)
Creates a new graph.

Parameters:
project - the graph's project.
Method Detail

createTaskLink

public AntTaskLink createTaskLink(java.lang.String linkName,
                                  Node startNode,
                                  Node endNode,
                                  java.lang.String taskName)
Creates a link representing a call by a task like ant.

Parameters:
linkName -
startNode -
endNode -
taskName -
Returns:

createSubantTaskLink

public SubantTaskLink createSubantTaskLink(java.lang.String linkName,
                                           Node startNode,
                                           Node endNode,
                                           java.lang.String taskName)
Creates a link representing a call by a subant task.

Parameters:
linkName -
startNode -
endNode -
taskName -
Returns:

getProject

public org.apache.tools.ant.Project getProject()
Returns the project.

Returns:

getFactory

protected GraphElementFactory getFactory()
Description copied from class: GraphImpl
Returns the current element factory creating one if none exists yet. This method can be overriden to use a custom factory.

Overrides:
getFactory in class GraphImpl
Returns:
the element factory.


Copyright © 2004-2005 ggTools. All Rights Reserved.