Super script call

Scripts are attached to metatypes and support polymorphism: a script defined on the type UML NamedElement may be redefined on Class.

In that case it may be necessary to be able to evaluate the parent script from the redefined script. The interface com.sodius.mdw.core.model.MDWObject defines a superScript(String) method to do so.

Here is an MQL example:

package com.mycompany.example;

metatype uml21.Class;

public String qualifiedName() {
    // Calls the script 'qualifiedName' defined on the NamedElement
    qName = self.superScript("qualifiedName");
    return "Class qualifiedName: " + qName;
}