org.apache.avalon.excalibur.util
Class Circuit

java.lang.Object
  |
  +--org.apache.avalon.excalibur.util.Circuit

public class Circuit
extends java.lang.Object

Circuit class used to map trees of information

Version:
0.0.20, 04/07/1998
Author:
Federico Barbieri , Stefano Mazzocchi

Inner Class Summary
 class Circuit.CircuitException
           
protected  class Circuit.Node
           
 
Field Summary
protected  java.util.Map m_map
           
 
Constructor Summary
Circuit()
           
 
Method Summary
 void addNode(java.lang.String name)
           
 java.lang.String getAncestor()
           
 java.util.List getAncestors()
           
 boolean isEmpty()
           
 void link(java.lang.String parent, java.lang.String child)
           
 void removeNode(java.lang.String name)
           
 java.lang.String toString()
           
 void unlink(java.lang.String parent, java.lang.String child)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_map

protected java.util.Map m_map
Constructor Detail

Circuit

public Circuit()
Method Detail

addNode

public void addNode(java.lang.String name)

removeNode

public void removeNode(java.lang.String name)

link

public void link(java.lang.String parent,
                 java.lang.String child)
          throws Circuit.CircuitException

unlink

public void unlink(java.lang.String parent,
                   java.lang.String child)
            throws Circuit.CircuitException

getAncestors

public java.util.List getAncestors()

getAncestor

public java.lang.String getAncestor()

isEmpty

public boolean isEmpty()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2001 Apache Jakarta Project. All Rights Reserved.