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