net.ggtools.grand.ant
Class AntTargetNode

java.lang.Object
  extended by net.ggtools.grand.graph.AttributeManager
      extended by net.ggtools.grand.graph.NodeImpl
          extended by net.ggtools.grand.ant.AntTargetNode
All Implemented Interfaces:
GraphObject, Node

public class AntTargetNode
extends NodeImpl

A node implementation specialized for ant target.

Author:
Christophe Labouisse

Nested Class Summary
static class AntTargetNode.SourceElement
           
 
Field Summary
static int SOURCE_ATTRIBUTE
           
static int SOURCE_INKNOWN
           
static int SOURCE_MARKUP
           
static int SOURCE_TEXT
           
 
Fields inherited from interface net.ggtools.grand.graph.Node
ATTR_CONDITIONAL_NODE, ATTR_MAIN_NODE, ATTR_MISSING_NODE, ATTR_START_NODE
 
Fields inherited from interface net.ggtools.grand.graph.GraphObject
ATTR_ALL, ATTR_NONE
 
Constructor Summary
AntTargetNode(java.lang.String name, Graph graph)
           
 
Method Summary
 void accept(NodeVisitor visitor)
          Accepts a visitor.
 java.lang.String getBuildFile()
          Returns this node build file or null if the build file is the current project.
 java.lang.String getIfCondition()
          Returns the if condition for the target or null if none defined.
 AntTargetNode.SourceElement[] getRichSource()
           
 java.lang.String getUnlessCondition()
          Returns the unless condition for the target or null if none defined.
(package private)  void setBuildFile(java.lang.String buildFile)
           
(package private)  void setIfCondition(java.lang.String ifCondition)
           
 void setRichSource(AntTargetNode.SourceElement[] richSource)
           
(package private)  void setUnlessCondition(java.lang.String unlessCondition)
           
 
Methods inherited from class net.ggtools.grand.graph.NodeImpl
addBackLink, addLink, equals, getBackLinks, getDescription, getGraph, getLinks, getName, getSource, hashCode, removeBackLink, removeLink, setDescription, setSource, toString
 
Methods inherited from class net.ggtools.grand.graph.AttributeManager
clearAttributes, getAttributes, hasAttributes, setAttributes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.ggtools.grand.graph.GraphObject
clearAttributes, getAttributes, hasAttributes, setAttributes
 

Field Detail

SOURCE_ATTRIBUTE

public static final int SOURCE_ATTRIBUTE
See Also:
Constant Field Values

SOURCE_INKNOWN

public static final int SOURCE_INKNOWN
See Also:
Constant Field Values

SOURCE_MARKUP

public static final int SOURCE_MARKUP
See Also:
Constant Field Values

SOURCE_TEXT

public static final int SOURCE_TEXT
See Also:
Constant Field Values
Constructor Detail

AntTargetNode

public AntTargetNode(java.lang.String name,
                     Graph graph)
Parameters:
name -
graph -
Method Detail

accept

public void accept(NodeVisitor visitor)
Description copied from interface: Node
Accepts a visitor. The implementation should call the appropriate visitNode method of the visitor.

Specified by:
accept in interface Node
Overrides:
accept in class NodeImpl

getBuildFile

public final java.lang.String getBuildFile()
Returns this node build file or null if the build file is the current project.

Returns:
Returns the buildFile.

getIfCondition

public final java.lang.String getIfCondition()
Returns the if condition for the target or null if none defined.

Returns:
Returns the if condition.

getRichSource

public final AntTargetNode.SourceElement[] getRichSource()
Returns:
Returns the richSource.

getUnlessCondition

public final java.lang.String getUnlessCondition()
Returns the unless condition for the target or null if none defined.

Returns:
Returns the unless condition.

setRichSource

public final void setRichSource(AntTargetNode.SourceElement[] richSource)
Parameters:
richSource - The richSource to set.

setBuildFile

final void setBuildFile(java.lang.String buildFile)
Parameters:
buildFile - The buildFile to set.

setIfCondition

final void setIfCondition(java.lang.String ifCondition)
Parameters:
ifCondition - The ifCondition to set.

setUnlessCondition

final void setUnlessCondition(java.lang.String unlessCondition)
Parameters:
unlessCondition - The unlessCondition to set.


Copyright © 2004-2005 ggTools. All Rights Reserved.