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