/** * Handles inserting a specific type of model object into our object graph. * @param LSID LSID of the model object. * @param sourceObject Model object itself. * @param indexes Any indexes that should be used to reference the model * object. */ private void handle(String LSID, LightSource sourceObject, Map<String, Integer> indexes) { Instrument i = instrumentList.get(indexes.get("instrumentIndex")); i.addLightSource(sourceObject); }
Iterator<IObject> j = list.iterator(); while (j.hasNext()) { value.addLightSource((LightSource) j.next());