junit.quilt.util
Class Registry

java.lang.Object
  |
  +--junit.quilt.util.Registry
Direct Known Subclasses:
QuiltRegistry, TestRegistry

public class Registry
extends java.lang.Object


Constructor Summary
Registry()
           
Registry(java.lang.String name)
           
 
Method Summary
 void addRegistryListener(RegistryListener rl)
          Use this to register a listener here.
 java.lang.Object get(java.lang.Object[] path)
           
 java.lang.Object get(javax.swing.tree.TreePath path)
           
 javax.swing.tree.TreeNode getContents()
          Use this to get the contents of the registry, in a form that a JTree can use.
 java.util.Iterator getValues()
          Returns all entries in the Registry.
protected  boolean register(java.lang.Object[] keys, java.lang.Object value)
          Returns TRUE if it successfully adds it, FALSE if it already exists.
 void removeRegistryListener(RegistryListener rl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registry

public Registry()

Registry

public Registry(java.lang.String name)
Method Detail

get

public java.lang.Object get(javax.swing.tree.TreePath path)

register

protected boolean register(java.lang.Object[] keys,
                           java.lang.Object value)
Returns TRUE if it successfully adds it, FALSE if it already exists.

addRegistryListener

public void addRegistryListener(RegistryListener rl)
Use this to register a listener here. It will let you know when the contents of the registry change.

removeRegistryListener

public void removeRegistryListener(RegistryListener rl)

getContents

public javax.swing.tree.TreeNode getContents()
Use this to get the contents of the registry, in a form that a JTree can use.

get

public java.lang.Object get(java.lang.Object[] path)

getValues

public java.util.Iterator getValues()
Returns all entries in the Registry.


Copyright © 2001-2002 David Dixon-Peugh. All Rights Reserved.