net.ggtools.grand.ant
Class AntGraphElementFactory

java.lang.Object
  extended by net.ggtools.grand.ant.AntGraphElementFactory
All Implemented Interfaces:
GraphElementFactory

 class AntGraphElementFactory
extends java.lang.Object
implements GraphElementFactory

An element factory specialized in ant graph.

Author:
Christophe Labouisse

Constructor Summary
AntGraphElementFactory(AntGraph graph)
          Creates a new factory linked to a specific graph.
 
Method Summary
 Link createLink(java.lang.String linkName, Node startNode, Node endNode)
          Creates a new link between 2 nodes.
 Node createNode(java.lang.String nodeName)
          Creates a new Node.
 SubantTaskLink createSubantTaskLink(java.lang.String linkName, Node startNode, Node endNode, java.lang.String taskName)
          Creates a link for a subant task call.
 AntTaskLink createTaskLink(java.lang.String linkName, Node startNode, Node endNode, java.lang.String taskName)
          Creates a link for a task call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntGraphElementFactory

public AntGraphElementFactory(AntGraph graph)
Creates a new factory linked to a specific graph.

Parameters:
graph -
Method Detail

createNode

public Node createNode(java.lang.String nodeName)
Description copied from interface: GraphElementFactory
Creates a new Node.

Specified by:
createNode in interface GraphElementFactory
Parameters:
nodeName - name of the newly created node.
Returns:
a new node.

createLink

public Link createLink(java.lang.String linkName,
                       Node startNode,
                       Node endNode)
Description copied from interface: GraphElementFactory
Creates a new link between 2 nodes.

Specified by:
createLink in interface GraphElementFactory
Parameters:
linkName - the new link name, can be null.
startNode - start node
endNode - end node
Returns:
a new link.

createTaskLink

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

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 for a subant task call. Although it can be used for any kind of link resulting from a subant task, this method is intented to be called for the genericantfile version of the task.

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


Copyright © 2004-2005 ggTools. All Rights Reserved.