示例#1
0
 @Override
 public boolean isStereotype(
     @NonNull EnvironmentFactoryInternal environmentFactory, @NonNull EClass eClass) {
   for (EStructuralFeature eFeature : eClass.getEAllStructuralFeatures()) {
     EClassifier eType = eFeature.getEType();
     if (eType != null) {
       assert !eType.eIsProxy() : "Unresolved proxy: '" + EcoreUtil.getURI(eType) + "'";
       EPackage ePackage = eType.getEPackage();
       assert !"http://www.eclipse.org/uml2/5.0.0/UML".equals(ePackage.getNsURI());
     }
   }
   return false;
 }
示例#2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public EClassifier getClassifier() {
   if (classifier != null && classifier.eIsProxy()) {
     InternalEObject oldClassifier = (InternalEObject) classifier;
     classifier = (EClassifier) eResolveProxy(oldClassifier);
     if (classifier != oldClassifier) {
       if (eNotificationRequired())
         eNotify(
             new ENotificationImpl(
                 this,
                 Notification.RESOLVE,
                 XtextTerminalsTestLanguagePackage.TYPE_REF__CLASSIFIER,
                 oldClassifier,
                 classifier));
     }
   }
   return classifier;
 }