コード例 #1
0
 /**
  * Constructor to create a HqContractUnitCrFindNoOpRequest
  *
  * @param id Unique request name
  * @param noOpIn Simulated response object
  */
 public HqContractUnitCrFindNoOpRequest(String id, HqContractUnitCrObjectDataList noOpIn) {
   super(id, "HqContractUnitCrFindNoOpRequest");
   if (noOpIn != null) {
     Map mapList = new HashMap();
     Map[] mapArray = null;
     mapList.put("Count", noOpIn.getLength());
     mapList.put("TotalCount", noOpIn.getTotalCount());
     mapList.put("Index", noOpIn.getIndex());
     mapArray = new HashMap[noOpIn.getLength()];
     for (int i = 0; i < noOpIn.getLength(); i++) {
       mapArray[i] = HqContractUnitCrObjectHelper.toMap(noOpIn.getArray()[i], null);
       addInput("HqContractUnitCr", noOpIn);
     }
     addInput("HqContractUnitCr", mapList);
   }
 }
コード例 #2
0
 /**
  * Retrieves the HqContractUnitCrObjectDataList passed into the constructor
  *
  * @return Simulated response
  */
 public HqContractUnitCrObjectDataList getOutput() {
   return HqContractUnitCrObjectHelper.fromMapList(outputMap, "HqContractUnitCrList");
 }