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")); } }
/** * 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); } }
/** * Retrieves the SpecialDestinationTypeObjectDataList passed into the constructor * * @return Simulated response */ public SpecialDestinationTypeObjectDataList getOutput() { return SpecialDestinationTypeObjectHelper.fromMapList(outputMap, "SpecialDestinationTypeList"); }
public void translateFromMap() { sdFindIn = SpecialDestinationTypeObjectHelper.fromMapFilter(inputMap, "SpecialDestinationType"); }