net.ggtools.grand.graph
Interface NodeContainer

All Known Subinterfaces:
Graph, SubGraph
All Known Implementing Classes:
AntGraph, GraphImpl, SubGraphImpl

interface NodeContainer

Internal interface for node containers.

Author:
Christophe Labouisse

Method Summary
 Node getNode(java.lang.String nodeName)
          Find a node from its name.
 java.util.Iterator getNodes()
          Get the nodes contained in the graph.
 boolean hasNode(java.lang.String nodeName)
          Checks if the graph has a node with a specific name.
 

Method Detail

getNode

Node getNode(java.lang.String nodeName)
Find a node from its name.

Parameters:
nodeName - name of the node to find.
Returns:
the node or null if not found.

getNodes

java.util.Iterator getNodes()
Get the nodes contained in the graph. The implementing class should garantee that the Iterator will only returns object implementing the Node interface. The returned iterator should implement the optional Iterator.remove()method in order to allow the filters to remove nodes.

Returns:
an iterator to the graph's nodes.

hasNode

boolean hasNode(java.lang.String nodeName)
Checks if the graph has a node with a specific name.

Parameters:
nodeName - node to search.
Returns:
true if the graph contains a node called nodeName.


Copyright © 2004-2005 ggTools. All Rights Reserved.