コード例 #1
0
 private void populateTransformerInstances(ModelClass_c testObj, boolean instanceBased) {
   for (int i = 0; i < funcs.length; ++i) {
     Operation_c[] testObjTrans = Operation_c.getManyO_TFRsOnR115(testObj);
     Operation_c testTrans = null;
     for (int tfrInstCount = 0; tfrInstCount < testObjTrans.length; tfrInstCount++) {
       Operation_c selected = testObjTrans[tfrInstCount];
       if (selected.getName().equals(funcs[i])) {
         testTrans = testObjTrans[tfrInstCount];
         break;
       }
     }
     if (testTrans != null) {
       if (instanceBased) {
         if (m_testIBTfr[i] == null) m_testIBTfr[i] = testTrans;
       } else {
         if (m_testCBTfr[i] == null) m_testCBTfr[i] = testTrans;
       }
     } else
       fail(
           "Missing operation "
               + testObj.getKey_lett()
               + "::"
               + funcs[i]); // $NON-NLS-1$//$NON-NLS-2$
   }
 }
コード例 #2
0
 public boolean evaluate(Object inst) {
   ModelClass_c selected = (ModelClass_c) inst;
   return selected.getKey_lett().equals(m_id);
 }