Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 36efdd46f2f3386e0bfe5d4ca8696d4942d11cc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
import umlProperty;

listSubclasses(Entity this) :
	let subclasses = this.eRootContainer.eAllContents.typeSelect(Entity).select(e|e.extends == this).name:
		switch (subclasses.size) { 
			case 0: "no subclasses"
			case 1: "subclass: " + subclasses.toString(", ")
			default: subclasses.size.toString() + " subclasses: " + subclasses.toString(", ")
		};

Back to the top