コード例 #1
0
  // declare transform functions
  public void Dispose() {
    Ooaofooa.log.println(
        ILogger.OPERATION, "Bridge Invocation", " Operation entered: BridgeInvocation::Dispose");
    final ModelRoot modelRoot = getModelRoot();
    Bridge_c v_brg = Bridge_c.getOneS_BRGOnR674(this);

    if ((!(v_brg == null))) {

      this.unrelateAcrossR674From(v_brg);
    }

    ActualParameter_c[] v_parm_set = ActualParameter_c.getManyV_PARsOnR628(this);

    ActualParameter_c v_parm = null;
    for (int i37268 = 0; i37268 < v_parm_set.length; i37268++) {
      v_parm = v_parm_set[i37268];

      this.unrelateAcrossR628From(v_parm);

      if (v_parm != null) {
        v_parm.Dispose();
      } else {
        Throwable t = new Throwable();
        t.fillInStackTrace();
        CorePlugin.logError("Attempted to call an operation on a null instance.", t);
      }
    }

    delete();
  } // End dispose
コード例 #2
0
  public boolean delete() {
    boolean result = super.delete();
    boolean delete_error = false;
    String errorMsg =
        "The following relationships were not torn down by the Bridge Invocation.dispose call: ";
    ActualParameter_c testR628Inst = ActualParameter_c.getOneV_PAROnR628(this, false);

    if (testR628Inst != null) {
      delete_error = true;
      errorMsg = errorMsg + "628 ";
    }
    Statement_c testR603Inst7 = Statement_c.getOneACT_SMTOnR603(this, false);

    if (testR603Inst7 != null) {
      delete_error = true;
      errorMsg = errorMsg + "603 ";
    }
    Bridge_c testR674Inst = Bridge_c.getOneS_BRGOnR674(this, false);

    if (testR674Inst != null) {
      delete_error = true;
      errorMsg = errorMsg + "674 ";
    }
    if (delete_error == true) {

      if (CorePlugin.getDefault().isDebugging()) {
        Ooaofooa.log.println(ILogger.DELETE, "Bridge Invocation", errorMsg);
      } else {
        Exception e = new Exception();
        e.fillInStackTrace();
        CorePlugin.logError(errorMsg, e);
      }
    }
    return result;
  }
コード例 #3
0
 public void setActualParameterOrderInChildListR628(ActualParameter_c target, int index) {
   unrelateAcrossR628From(target);
   ActualParameter_c[] elements = ActualParameter_c.getManyV_PARsOnR628(this);
   int count = 0;
   for (int i = 0; i < elements.length; i++) {
     if (count >= index) {
       unrelateAcrossR628From((ActualParameter_c) elements[i]);
     }
     count++;
   }
   relateAcrossR628To(target);
   count = 0;
   for (int i = 0; i < elements.length; i++) {
     if (count >= index) {
       relateAcrossR628To((ActualParameter_c) elements[i]);
     }
     count++;
   }
 }
コード例 #4
0
 public void unrelateAcrossR628From(ActualParameter_c target, boolean notifyChanges) {
   if (target != null) {
     target.unrelateAcrossR628From(this, notifyChanges);
   }
 }
コード例 #5
0
 public void unrelateAcrossR628From(ActualParameter_c target) {
   if (target != null) {
     target.unrelateAcrossR628From(this, true);
   }
 }
コード例 #6
0
 public void relateAcrossR628To(ActualParameter_c target) {
   if (target != null) {
     target.relateAcrossR628To(this, true);
   }
 }