com.alexmerz.simpleviz.parser.data
Class NodeList

java.lang.Object
  extended by com.alexmerz.simpleviz.parser.data.NodeList

public class NodeList
extends java.lang.Object

Implements a global table for the node objects in a graph

Version:
$Id$
Author:
Alexander Merz

Constructor Summary
NodeList()
           
 
Method Summary
 com.alexmerz.graphviz.objects.Node addUnique(java.lang.String id)
          Creates a node object and add it to the list and returns the node.
 java.lang.String toString()
          Returns a string representation of this node object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeList

public NodeList()
Method Detail

addUnique

public com.alexmerz.graphviz.objects.Node addUnique(java.lang.String id)
Creates a node object and add it to the list and returns the node. If a node with the same id already exists, the existing node is returned without creating a new one.

Parameters:
id - the node id
Returns:
the node object

toString

public java.lang.String toString()
Returns a string representation of this node object

Overrides:
toString in class java.lang.Object
Returns:
the string representation