The ElementFactory.interfaceForName method is used to get a class object for the wrapper interface named UML metaclass. However, since interfaceForName is static, it only looks for interfaces in the statically known org.modeldriven.alf.uml package, which does not cover all UML metaclasses. If there is no interface for the named metaclass, the method returns null. This is not adequate when the reference implementation is integrated into a tool that implements the complete UML metamodel.
The
ElementFactory.interfaceForName
method is used to get a class object for the wrapper interface named UML metaclass. However, sinceinterfaceForName
is static, it only looks for interfaces in the statically knownorg.modeldriven.alf.uml
package, which does not cover all UML metaclasses. If there is no interface for the named metaclass, the method returns null. This is not adequate when the reference implementation is integrated into a tool that implements the complete UML metamodel.