48
 What do YOU want UML to be?  |  Long Talk  |  © Copyright 2007 by IBM Corp.; made available under the EPL v1.0
Derived Unions – Example
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Namespace basicGetNamespace() {
    org.eclipse.uml2.uml.Class class_ = basicGetClass_();
    if (class_ != null) {
        return class_;
    }
    DataType datatype = basicGetDatatype();
    if (datatype != null) {
        return datatype;
    }
    return super.basicGetNamespace();
}