You can reference a model type, i.e. an instance of the interface
com.sodius.mdw.core.model.Model,
using just a metamodel identifier (e.g. uml21).
// This ruleset expects as input a Model containing UML 2.1 elements
public ruleset(in model : uml21) {
...
}
You can reference a Java class in several way:
com.sodius.mdw.metamodel.uml21.Classifier.Classifier, if this simple name can be resolved:
com.sodius.mdw.metamodel.uml21.*
or com.sodius.mdw.metamodel.uml21.Classifier),java.lang.uml21.Classifier,
where the simple metatype name is prefixed by the metamodel identifier.
This is the recommended way to reference a metatype, as the notation is simple and clear.You can also reference Java primitive types:
booleanbytechardoublefloatintlongvoid