org.argouml.uml
Class GenAncestorClasses

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

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

Utility class to generate the base classes of a class. It recursively moves up the class hierarchy. But it does that in a safe way that will not hang in case of cyclic inheritance.

See Also:
Serialized Form

Constructor Summary
GenAncestorClasses()
           
 
Method Summary
 void accumulateAncestors(Object cls, Vector accum)
           
 Enumeration gen(Object cls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenAncestorClasses

public GenAncestorClasses()
Method Detail

gen

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

accumulateAncestors

public void accumulateAncestors(Object cls,
                                Vector accum)
Parameters:
cls - the class (in fact any GeneralizableElement will do)
accum - the accumulated list of generalizations


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