| M.O wrote: Suppose that I am in this situation: | | class A | class B subClassOf A | class C subClassOf A | class D subClassOf C | | ...what can I do in order to obtain only the classes B and D? In other | words is there a way to retrieve only the leaf classes of a hierarchy tree? | | IBL wrote : Here is one way of expressing this. | | You can run (and change) this example using a browser with | the Internet Business Logic system at www.reengineeringllc.com . the top level class is some-top-class some-class is a subclass of that-top-class not : that-class has at least one subclass ------------------------------------------------ that-class is a leaf class of the hierarchy tree the top level class is this-class ================================== A some-class2 is a subclass of some-class3 some-class1 is a subclass of that-class2 ---------------------------------------- that-class1 is a subclass of that-class3 some-subclass is a subclass of some-class ----------------------------------------- that-class has at least one subclass this-class1 is a subclass of this-class2 ======================================== B A C A D C