public void translateToMap() {
   if (sdFindIn != null) {
     Integer index = sdFindIn.getIndex();
     if (index != null) addInput("Index", index);
     addInput(
         "SpecialDestinationType",
         SpecialDestinationTypeObjectHelper.toMap(
                 sdFindIn, new HashMap(), "SpecialDestinationType")
             .get("SpecialDestinationType"));
   }
 }
コード例 #2
0
 /**
  * Constructor to create a SpecialDestinationTypeFindNoOpRequest
  *
  * @param id Unique request name
  * @param noOpIn Simulated response object
  */
 public SpecialDestinationTypeFindNoOpRequest(
     String id, SpecialDestinationTypeObjectDataList noOpIn) {
   super(id, "SpecialDestinationTypeFindNoOpRequest");
   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] = SpecialDestinationTypeObjectHelper.toMap(noOpIn.getArray()[i], null);
       addInput("SpecialDestinationType", noOpIn);
     }
     addInput("SpecialDestinationType", mapList);
   }
 }