private void addDatasetIds(InvDatasetImpl ds) { addDatasetByID(ds); if (ds instanceof InvCatalogRef) return; //if (ds instanceof InvDatasetFmrc) return; // recurse into nested for (InvDataset invDataset : ds.getDatasets()) { InvDatasetImpl nested = (InvDatasetImpl) invDataset; addDatasetIds(nested); } }
private void addDatasetIds(InvDatasetImpl ds) { addDatasetByID(ds); if (ds instanceof InvCatalogRef) return; //if (ds instanceof InvDatasetFmrc) return; // recurse into nested for (InvDataset invDataset : ds.getDatasets()) { InvDatasetImpl nested = (InvDatasetImpl) invDataset; addDatasetIds(nested); } }
private void addDatasetIds(InvDatasetImpl ds) { addDatasetByID(ds); if (ds instanceof InvCatalogRef) return; //if (ds instanceof InvDatasetFmrc) return; // recurse into nested for (InvDataset invDataset : ds.getDatasets()) { InvDatasetImpl nested = (InvDatasetImpl) invDataset; addDatasetIds(nested); } }
/** * Finish constructing after all elements have been added or modified. * This routine will do any needed internal consistency work. * Its ok to call multiple times. * * @return true if successful. */ public boolean finish() { // make topDataset if needed //if (topDataset == null) { if (datasets.size() == 1) { // already only one; make it top topDataset = (InvDatasetImpl) datasets.get(0); } else { // create one topDataset = new InvDatasetImpl(null, name == null ? "Top Dataset" : name); for (InvDataset dataset : datasets) topDataset.addDataset((InvDatasetImpl) dataset); topDataset.setServicesLocal(services); } //} topDataset.setCatalog(this); // build dataset hash table dsHash = new HashMap<String, InvDataset>(); addDatasetIds(topDataset); // recurse through the datasets and finish them return topDataset.finish(); }
/** * Finish constructing after all elements have been added or modified. * This routine will do any needed internal consistency work. * Its ok to call multiple times. * * @return true if successful. */ public boolean finish() { // make topDataset if needed //if (topDataset == null) { if (datasets.size() == 1) { // already only one; make it top topDataset = (InvDatasetImpl) datasets.get(0); } else { // create one topDataset = new InvDatasetImpl(null, name == null ? "Top Dataset" : name); for (InvDataset dataset : datasets) topDataset.addDataset((InvDatasetImpl) dataset); topDataset.setServicesLocal(services); } //} topDataset.setCatalog(this); // build dataset hash table dsHash = new HashMap<String, InvDataset>(); addDatasetIds(topDataset); // recurse through the datasets and finish them return topDataset.finish(); }
/** * Finish constructing after all elements have been added or modified. * This routine will do any needed internal consistency work. * Its ok to call multiple times. * * @return true if successful. */ public boolean finish() { // make topDataset if needed //if (topDataset == null) { if (datasets.size() == 1) { // already only one; make it top topDataset = (InvDatasetImpl) datasets.get(0); } else { // create one topDataset = new InvDatasetImpl(null, name == null ? "Top Dataset" : name); for (InvDataset dataset : datasets) topDataset.addDataset((InvDatasetImpl) dataset); topDataset.setServicesLocal(services); } //} topDataset.setCatalog(this); // build dataset hash table dsHash = new HashMap<String, InvDataset>(); addDatasetIds(topDataset); // recurse through the datasets and finish them return topDataset.finish(); }