org.argouml.uml
Class GenAncestorClasses
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenAncestorClasses
public GenAncestorClasses()
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