Exemplo n.º 1
0
 public void addAllTemplateParameters(@NonNull TemplateableElement pivot) {
   if (accepts(PivotPackage.Literals.TYPE)) {
     TemplateSignature templateSignature = pivot.getOwnedSignature();
     if (templateSignature != null) {
       String name2 = name;
       List<TemplateParameter> templateParameters = templateSignature.getOwnedParameters();
       if (name2 != null) {
         for (TemplateParameter templateParameter : templateParameters) {
           if ((templateParameter != null) && name2.equals(templateParameter.getName())) {
             addElement(name2, templateParameter);
           }
         }
       } else {
         for (TemplateParameter templateParameter : templateParameters) {
           if (templateParameter != null) {
             addNamedElement(templateParameter);
           }
         }
       }
     }
   }
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public TemplateParameter getFormal() {
   if (formal != null && formal.eIsProxy()) {
     InternalEObject oldFormal = (InternalEObject) formal;
     formal = (TemplateParameter) eResolveProxy(oldFormal);
     if (formal != oldFormal) {
       if (eNotificationRequired())
         eNotify(
             new ENotificationImpl(
                 this,
                 Notification.RESOLVE,
                 PivotPackage.TEMPLATE_PARAMETER_SUBSTITUTION__FORMAL,
                 oldFormal,
                 formal));
     }
   }
   return formal;
 }