public void setParent(thredds.catalog.InvDatasetImpl p0) { proxy.setParent( p0); }
public void setParent(thredds.catalog.InvDatasetImpl p0) { proxy.setParent( p0); }
public void setParent(thredds.catalog.InvDatasetImpl p0) { proxy.setParent( p0); }
/** * Add a nested dataset. * * @param ds add this */ public void addDataset(InvDatasetImpl ds) { if (ds == null) return; ds.setParent(this); datasets.add(ds); hashCode = 0; }
/** * Add a nested dataset at the location indicated by index. * * @param index add at this position * @param ds add this */ public void addDataset(int index, InvDatasetImpl ds) { if (ds == null) return; ds.setParent(this); datasets.add(index, ds); hashCode = 0; }
/** * Add a nested dataset. * * @param ds add this */ public void addDataset(InvDatasetImpl ds) { if (ds == null) return; ds.setParent(this); datasets.add(ds); hashCode = 0; }
/** * Add a nested dataset at the location indicated by index. * * @param index add at this position * @param ds add this */ public void addDataset(int index, InvDatasetImpl ds) { if (ds == null) return; ds.setParent(this); datasets.add(index, ds); hashCode = 0; }
/** * Add a nested dataset. * * @param ds add this */ public void addDataset(InvDatasetImpl ds) { if (ds == null) return; ds.setParent(this); datasets.add(ds); hashCode = 0; }
/** * Add a nested dataset at the location indicated by index. * * @param index add at this position * @param ds add this */ public void addDataset(int index, InvDatasetImpl ds) { if (ds == null) return; ds.setParent(this); datasets.add(index, ds); hashCode = 0; }
/** * Remove the given dataset from this catalog if it is a direct child of this catalog. * * @param ds remove this dataset * @return true if found and removed */ public boolean removeDataset(InvDatasetImpl ds) { if (this.datasets.remove(ds)) { ds.setParent(null); removeDatasetByID(ds); return true; } return false; }
/** * Remove the given dataset from this catalog if it is a direct child of this catalog. * * @param ds remove this dataset * @return true if found and removed */ public boolean removeDataset(InvDatasetImpl ds) { if (this.datasets.remove(ds)) { ds.setParent(null); removeDatasetByID(ds); return true; } return false; }
/** * Remove the given dataset from this catalog if it is a direct child of this catalog. * * @param ds remove this dataset * @return true if found and removed */ public boolean removeDataset(InvDatasetImpl ds) { if (this.datasets.remove(ds)) { ds.setParent(null); removeDatasetByID(ds); return true; } return false; }
/** * Remove the given dataset element from this dataset if it is in the dataset. * * @param ds - the dataset element to be removed * @return true if this dataset contained the given dataset element. */ public boolean removeDataset(InvDatasetImpl ds) { if (this.datasets.remove(ds)) { ds.setParent(null); InvCatalogImpl cat = (InvCatalogImpl) getParentCatalog(); if (cat != null) cat.removeDatasetByID(ds); return (true); } return (false); }
/** * Remove the given dataset element from this dataset if it is in the dataset. * * @param ds - the dataset element to be removed * @return true if this dataset contained the given dataset element. */ public boolean removeDataset(InvDatasetImpl ds) { if (this.datasets.remove(ds)) { ds.setParent(null); InvCatalogImpl cat = (InvCatalogImpl) getParentCatalog(); if (cat != null) cat.removeDatasetByID(ds); return (true); } return (false); }
/** * Remove the given dataset element from this dataset if it is in the dataset. * * @param ds - the dataset element to be removed * @return true if this dataset contained the given dataset element. */ public boolean removeDataset(InvDatasetImpl ds) { if (this.datasets.remove(ds)) { ds.setParent(null); InvCatalogImpl cat = (InvCatalogImpl) getParentCatalog(); if (cat != null) cat.removeDatasetByID(ds); return (true); } return (false); }
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 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; }
private InvCatalogImpl makeCatalogRuns(URI catURI, State localState) throws IOException { InvCatalogImpl parent = (InvCatalogImpl) getParentCatalog(); //URI myURI = baseURI.resolve(getCatalogHref(RUNS)); InvCatalogImpl runCatalog = new InvCatalogImpl(getFullName(), parent.getVersion(), catURI); InvDatasetImpl top = new InvDatasetImpl(this); top.setParent(null); top.transferMetadata((InvDatasetImpl) this.getParent(), true); // make all inherited metadata local top.setName(RUN_TITLE); // add Variables, GeospatialCoverage, TimeCoverage ThreddsMetadata tmi = top.getLocalMetadataInheritable(); if (localState.vars != null) tmi.addVariables(localState.vars); if (localState.coverage != null) tmi.setGeospatialCoverage(localState.coverage); //if (localState.dateRange != null) tmi.setTimeCoverage(localState.dateRange); runCatalog.addDataset(top); // services need to be local runCatalog.addService(virtualService); top.getLocalMetadataInheritable().setServiceName(virtualService.getName()); for (InvDatasetImpl ds : makeRunDatasets()) top.addDataset(ds); runCatalog.finish(); return runCatalog; }
private InvCatalogImpl makeCatalogOffsets(URI catURI, State localState) throws IOException { InvCatalogImpl parent = (InvCatalogImpl) getParentCatalog(); //URI myURI = baseURI.resolve(getCatalogHref(OFFSET)); InvCatalogImpl offCatalog; offCatalog = new InvCatalogImpl(getFullName(), parent.getVersion(), catURI); InvDatasetImpl top = new InvDatasetImpl(this); top.setParent(null); top.transferMetadata((InvDatasetImpl) this.getParent(), true); // make all inherited metadata local // add Variables, GeospatialCoverage, TimeCoverage ThreddsMetadata tmi = top.getLocalMetadataInheritable(); if (localState.vars != null) tmi.addVariables(localState.vars); if (localState.coverage != null) tmi.setGeospatialCoverage(localState.coverage); if (localState.dateRange != null) tmi.setTimeCoverage(localState.dateRange); top.setName(OFFSET_TITLE); offCatalog.addDataset(top); // services need to be local offCatalog.addService(virtualService); top.getLocalMetadataInheritable().setServiceName(virtualService.getName()); for (InvDatasetImpl ds : makeOffsetDatasets()) top.addDataset(ds); offCatalog.finish(); return offCatalog; }
private InvCatalogImpl makeCatalogForecasts(URI catURI, State localState) throws IOException { InvCatalogImpl parent = (InvCatalogImpl) getParentCatalog(); //URI myURI = baseURI.resolve(getCatalogHref(FORECAST)); InvCatalogImpl foreCatalog = new InvCatalogImpl(getFullName(), parent.getVersion(), catURI); InvDatasetImpl top = new InvDatasetImpl(this); top.setParent(null); top.transferMetadata((InvDatasetImpl) this.getParent(), true); // make all inherited metadata local top.setName(FORECAST_TITLE); // add Variables, GeospatialCoverage, TimeCoverage ThreddsMetadata tmi = top.getLocalMetadataInheritable(); if (localState.vars != null) tmi.addVariables(localState.vars); if (localState.coverage != null) tmi.setGeospatialCoverage(localState.coverage); if (localState.dateRange != null) tmi.setTimeCoverage(localState.dateRange); foreCatalog.addDataset(top); // services need to be local foreCatalog.addService(virtualService); foreCatalog.addService(cdmrService); top.getLocalMetadataInheritable().setServiceName(virtualService.getName()); for (InvDatasetImpl ds : makeForecastDatasets()) top.addDataset(ds); foreCatalog.finish(); return foreCatalog; }