/** * Construct "unresolved" URL: service.getBase() + getUrlPath() + service.getSuffix(). * It is not resolved, so it may be a reletive URL. * @return Unresolved Url as a String */ public String getUnresolvedUrlName() { return service.getBase() + getUrlPath() + service.getSuffix(); }
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); } }
/** * Write the catalog as an XML document to the specified stream. * * @param os write to this OutputStream * @throws java.io.IOException on an error. */ public void writeXML(java.io.OutputStream os) throws java.io.IOException { InvCatalogConvertIF converter = InvCatalogFactory.getDefaultConverter(); converter.writeXML(this, os); }
private InvDataset createDataset(InvCatalog catalog, String datasetName, final String serviceName) { final InvDatasetImpl dapDataset = new InvDatasetImpl(null, datasetName, FeatureType.NONE, serviceName, "http://wherever.you.want.bc"); dapDataset.setCatalog(catalog); final InvService dapService = new InvService(serviceName, serviceName, "irrelevant", "irrelevant", "irrelevant"); dapDataset.addAccess(new InvAccessImpl(dapDataset, "http://y.z", dapService)); dapDataset.finish(); return dapDataset; }
/** * Get URL to this dataset. Dataset must have an ID. * Form is catalogURL#DatasetID * * @return URL to this dataset. */ public String getCatalogUrl() { return getParentCatalog().getUriString() + "#" + getID(); }
public String getPath() { if (serviceType != null) { InvAccess access = dataset.getAccess( serviceType); if (access != null) return access.getStandardUrlName(); } return dataset.getCatalogUrl(); }
/** * Get a list of all the nested datasets. * @return Datasets. This triggers a read of the referenced catalog the first time its called. */ @Override public java.util.List<InvDataset> getDatasets() { read(); return useProxy ? proxy.getDatasets() : super.getDatasets(); }
public void setVertical(double start, double end, double resolution, String units, boolean isPositiveUp) { double size = end - start; this.updown = new Range(start, size, resolution, units); setZPositiveUp(isPositiveUp); }
private InvCatalogImpl makeCatalogScan(String orgPath, URI baseURI) { if ( !madeDatasets) getDatasets(); return scan.makeCatalogForDirectory( orgPath, baseURI); }
private InvDatasetImpl createDataset(InvCatalogImpl catalog, String datasetName, final String serviceName) { final InvDatasetImpl dapDataset = new InvDatasetImpl(null, datasetName, FeatureType.NONE, serviceName, "http://wherever.you.want.bc"); dapDataset.setCatalog(catalog); final InvService dapService = new InvService(serviceName, serviceName, "irrelevant", "irrelevant", "irrelevant"); dapDataset.addAccess(new InvAccessImpl(dapDataset, "http://y.z", dapService)); dapDataset.finish(); return dapDataset; }
/** * Get URL to this dataset. Dataset must have an ID. * Form is catalogURL#DatasetID * * @return URL to this dataset. */ public String getCatalogUrl() { return getParentCatalog().getUriString() + "#" + getID(); }
/** * Construct "unresolved" URL: service.getBase() + getUrlPath() + service.getSuffix(). * It is not resolved, so it may be a reletive URL. * @return Unresolved Url as a String */ public String getUnresolvedUrlName() { return service.getBase() + getUrlPath() + service.getSuffix(); }
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); } }
/** * Write the catalog as an XML document to the specified stream. * * @param os write to this OutputStream * @param raw if true, write original (server) version, else write client version * @throws java.io.IOException on an error. */ public void writeXML(java.io.OutputStream os, boolean raw) throws java.io.IOException { InvCatalogConvertIF converter = InvCatalogFactory.getDefaultConverter(); converter.writeXML(this, os, raw); }
/** * Get a list of all the nested datasets. * @return Datasets. This triggers a read of the referenced catalog the first time its called. */ @Override public java.util.List<InvDataset> getDatasets() { read(); return useProxy ? proxy.getDatasets() : super.getDatasets(); }
public void setVertical(double start, double end, double resolution, String units, boolean isPositiveUp) { double size = end - start; this.updown = new Range(start, size, resolution, units); setZPositiveUp(isPositiveUp); }
private InvDatasetImpl createDataset(InvCatalogImpl catalog, String datasetName, final String serviceName) { final InvDatasetImpl dapDataset = new InvDatasetImpl(null, datasetName, FeatureType.NONE, serviceName, "http://wherever.you.want.bc"); dapDataset.setCatalog(catalog); final InvService dapService = new InvService(serviceName, serviceName, "irrelevant", "irrelevant", "irrelevant"); dapDataset.addAccess(new InvAccessImpl(dapDataset, "http://y.z", dapService)); dapDataset.finish(); return dapDataset; }
/** * Write the catalog as an XML document to the specified stream. * * @param os write to this OutputStream * @param raw if true, write original (server) version, else write client version * @throws java.io.IOException on an error. */ public void writeXML(java.io.OutputStream os, boolean raw) throws java.io.IOException { InvCatalogConvertIF converter = InvCatalogFactory.getDefaultConverter(); converter.writeXML(this, os, raw); }
/** * Get a list of all the nested datasets. * @return Datasets. This triggers a read of the referenced catalog the first time its called. */ @Override public java.util.List<InvDataset> getDatasets() { read(); return useProxy ? proxy.getDatasets() : super.getDatasets(); }
/** * Write the catalog as an XML document to the specified stream. * * @param os write to this OutputStream * @param raw if true, write original (server) version, else write client version * @throws java.io.IOException on an error. */ public void writeXML(java.io.OutputStream os, boolean raw) throws java.io.IOException { InvCatalogConvertIF converter = InvCatalogFactory.getDefaultConverter(); converter.writeXML(this, os, raw); }