public void translateToMap() { if (InvsInterfaceRefUpdateIn != null) { InvsInterfaceRefUpdateIn.resetFlags(true, true); addInput( "InvsInterfaceRef", InvsInterfaceRefObjectHelper.toMap( InvsInterfaceRefUpdateIn, new HashMap(), "InvsInterfaceRef") .get("InvsInterfaceRef")); } }
/** * Constructor to create a InvsInterfaceRefFindNoOpRequest * * @param id Unique request name * @param noOpIn Simulated response object */ public InvsInterfaceRefFindNoOpRequest(String id, InvsInterfaceRefObjectDataList noOpIn) { super(id, "InvsInterfaceRefFindNoOpRequest"); 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] = InvsInterfaceRefObjectHelper.toMap(noOpIn.getArray()[i], null); addInput("InvsInterfaceRef", noOpIn); } addInput("InvsInterfaceRef", mapList); } }