InvDatasetImpl ds = new InvCatalogRef(this, TITLE_RUNS, getCatalogHref(RUNS)); ds.finish(); datasets.add( ds); ds = new InvCatalogRef(this, TITLE_RUNS, getCatalogHref(RUNS)); ds.finish(); datasets.add( ds); ds = new InvCatalogRef(this, TITLE_OFFSET, getCatalogHref(OFFSET)); ds.finish(); datasets.add( ds); ds = new InvCatalogRef(this, TITLE_FORECAST, getCatalogHref(FORECAST)); ds.finish(); datasets.add( ds);
private InvCatalogImpl makeCatalogRuns(URI baseURI) throws IOException { if ((catalogRuns == null) || checkIfChanged()) { InvCatalogImpl parent = (InvCatalogImpl) getParentCatalog(); URI myURI = baseURI.resolve( getCatalogHref(RUNS)); InvCatalogImpl runCatalog = new InvCatalogImpl( getFullName(), parent.getVersion(), myURI); InvDatasetImpl top = new InvDatasetImpl(this); top.setParent(null); top.transferMetadata( (InvDatasetImpl) this.getParent(), true ); // make all inherited metadata local top.setName(TITLE_RUNS); runCatalog.addDataset(top); // any referenced services need to be local List<InvService> services = new ArrayList<InvService>( getServicesLocal()); InvService service = getServiceDefault(); if ((service != null) && !services.contains(service)) runCatalog.addService(service); for (InvDatasetImpl ds : makeRunDatasets()) { top.addDataset(ds); } runCatalog.finish(); this.catalogRuns = runCatalog; } return catalogRuns; }
private InvCatalogImpl makeCatalogOffsets(URI baseURI) throws IOException { if ((catalogOffsets == null) || checkIfChanged()) { InvCatalogImpl parent = (InvCatalogImpl) getParentCatalog(); URI myURI = baseURI.resolve( getCatalogHref(OFFSET)); InvCatalogImpl offCatalog = new InvCatalogImpl( getFullName(), parent.getVersion(), myURI); InvDatasetImpl top = new InvDatasetImpl(this); top.setParent(null); top.transferMetadata( (InvDatasetImpl) this.getParent(), true ); // make all inherited metadata local top.setName(TITLE_OFFSET); offCatalog.addDataset(top); // any referenced services need to be local List<InvService> services = getServicesLocal(); InvService service = getServiceDefault(); if ((service != null) && !services.contains(service)) offCatalog.addService(service); for (InvDatasetImpl ds : makeOffsetDatasets()) { top.addDataset(ds); } offCatalog.finish(); this.catalogOffsets = offCatalog; } return catalogOffsets; }
private InvCatalogImpl makeCatalogForecasts(URI baseURI) throws IOException { if ((catalogForecasts == null) || checkIfChanged()){ InvCatalogImpl parent = (InvCatalogImpl) getParentCatalog(); URI myURI = baseURI.resolve( getCatalogHref(FORECAST)); InvCatalogImpl foreCatalog = new InvCatalogImpl( getFullName(), parent.getVersion(), myURI); InvDatasetImpl top = new InvDatasetImpl(this); top.setParent(null); top.transferMetadata( (InvDatasetImpl) this.getParent(), true ); // make all inherited metadata local top.setName(TITLE_FORECAST); foreCatalog.addDataset(top); // any referenced services need to be local List<InvService> services = getServicesLocal(); InvService service = getServiceDefault(); if ((service != null) && !services.contains(service)) foreCatalog.addService(service); for (InvDatasetImpl ds : makeForecastDatasets()) { top.addDataset(ds); } foreCatalog.finish(); this.catalogForecasts = foreCatalog; } return catalogForecasts; }