org.argouml.uml
Class GenDescendantClasses

java.lang.Object
  extended byorg.argouml.uml.GenDescendantClasses
All Implemented Interfaces:
org.tigris.gef.util.ChildGenerator, Serializable

public class GenDescendantClasses
extends Object
implements org.tigris.gef.util.ChildGenerator

Utility class to generate the subclasses of a class. It recursively moves down the class hierarchy. But it does that in a safe way that will nothang in case of cyclic inheritance.

See Also:
Serialized Form

Field Summary
private static GenDescendantClasses SINGLETON
           
 
Constructor Summary
GenDescendantClasses()
           
 
Method Summary
 void accumulateDescendants(Object cls, Vector accum)
           
 Enumeration gen(Object o)
           
static GenDescendantClasses getSINGLETON()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

private static final GenDescendantClasses SINGLETON
Constructor Detail

GenDescendantClasses

public GenDescendantClasses()
Method Detail

getSINGLETON

public static GenDescendantClasses getSINGLETON()
Returns:
Returns the sINGLETON.

gen

public Enumeration gen(Object o)
Specified by:
gen in interface org.tigris.gef.util.ChildGenerator
See Also:
ChildGenerator.gen(java.lang.Object)

accumulateDescendants

public void accumulateDescendants(Object cls,
                                  Vector accum)
Parameters:
cls - the starting class (in fact GeneralizableElement)
accum - the accumulated list of descendents


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook