org.argouml.uml
Class GenAncestorClasses

java.lang.Object
  |
  +--org.argouml.uml.GenAncestorClasses
All Implemented Interfaces:
org.tigris.gef.util.ChildGenerator, java.io.Serializable

public class GenAncestorClasses
extends java.lang.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 id does that in a safe way that will nothang in case of cyclic inheritance.

See Also:
Serialized Form

Field Summary
static GenAncestorClasses TheInstance
           
 
Constructor Summary
GenAncestorClasses()
           
 
Method Summary
 void accumulateAncestors(ru.novosoft.uml.foundation.core.MGeneralizableElement cls, java.util.Vector accum)
           
 java.util.Enumeration gen(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TheInstance

public static GenAncestorClasses TheInstance
Constructor Detail

GenAncestorClasses

public GenAncestorClasses()
Method Detail

gen

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

accumulateAncestors

public void accumulateAncestors(ru.novosoft.uml.foundation.core.MGeneralizableElement cls,
                                java.util.Vector accum)


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook