/** * Constructor to create a InvElementPlusAutoContNoOpRequest * * @param id Unique request name * @param noOpIn Simulated response object */ public InvElementPlusAutoContNoOpRequest(String id, InvElementPlusObjDataList noOpIn) { super(id, "InvElementPlusAutoContNoOpRequest"); 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] = InvElementPlusObjHelper.toMap(noOpIn.getArray()[i], null); addInput("InvElementPlus", noOpIn); } addInput("InvElementPlus", mapList); } }
/** * Retrieves the InvElementPlusObjDataList passed into the constructor * * @return Simulated response */ public InvElementPlusObjDataList getOutput() { return InvElementPlusObjHelper.fromMapList(outputMap, "InvElementPlusList"); }