public void addService(thredds.catalog.InvService p0) { proxy.addService( p0); }
public void addService(thredds.catalog.InvService p0) { proxy.addService( p0); }
public void addService(thredds.catalog.InvService p0) { proxy.addService( p0); }
/** * Set the list of services attached specifically to this dataset. * Discard any previous servies. * * @param s list of services. */ public void setServicesLocal(java.util.List<InvService> s) { this.services = new ArrayList<>(); this.servicesLocal = new ArrayList<>(); for (InvService elem : s) { addService(elem); } hashCode = 0; }
/** * Set the list of services attached specifically to this dataset. * Discard any previous servies. * * @param s list of services. */ public void setServicesLocal(java.util.List<InvService> s) { this.services = new ArrayList<InvService>(); this.servicesLocal = new ArrayList<InvService>(); for (InvService elem : s) { addService(elem); } hashCode = 0; }
/** * Set the list of services attached specifically to this dataset. * Discard any previous servies. * * @param s list of services. */ public void setServicesLocal(java.util.List<InvService> s) { this.services = new ArrayList<>(); this.servicesLocal = new ArrayList<>(); for (InvService elem : s) { addService(elem); } hashCode = 0; }
/** * test */ public static void main(String[] args) { InvDatasetImpl topDs = new InvDatasetImpl(null, "topDs", FeatureType.valueOf("GRID"), "myService", "myUrlPath/"); InvService myS = new InvService("myService", ServiceType.DODS.toString(), "http://thredds.ucar.edu/cgi-bin/dods/nph-dods", "", null); topDs.addService(myS); topDs.getLocalMetadata().setServiceName("myService"); InvDatasetImpl childDs = new InvDatasetImpl(null, "childDs", null, null, "myUrlPath/"); topDs.addDataset(childDs); InvService ts = childDs.findService("myService"); System.out.println("InvDatasetImpl.main(): " + childDs.getAccess(ServiceType.DODS).toString()); }
/** * Construct an InvDatasetImpl which refers to a urlPath. * This is used to create a standalone InvDatasetImpl, outside of an InvCatalog. * An "anonymous" InvServerImpl is created and attached to the InvDataset. * * @param urlPath : construct URL from this path * @param dataType : data type * @param stype : ServiceType */ public InvDatasetImpl(String urlPath, FeatureType dataType, ServiceType stype) { super(null, "local file"); tm.setDataType(dataType); tm.setServiceName("anon"); this.urlPath = urlPath; // create anonymous service addService(new InvService(tm.getServiceName(), stype.toString(), "", "", null)); finish(); }
/** * Construct an InvDatasetImpl which refers to a urlPath. * This is used to create a standalone InvDatasetImpl, outside of an InvCatalog. * An "anonymous" InvServerImpl is created and attached to the InvDataset. * * @param urlPath : construct URL from this path * @param dataType : data type * @param stype : ServiceType */ public InvDatasetImpl(String urlPath, FeatureType dataType, ServiceType stype) { super(null, "local file"); tm.setDataType(dataType); tm.setServiceName("anon"); this.urlPath = urlPath; // create anonomous service addService(new InvService(tm.getServiceName(), stype.toString(), "", "", null)); finish(); }
/** * Construct an InvDatasetImpl which refers to a urlPath. * This is used to create a standalone InvDatasetImpl, outside of an InvCatalog. * An "anonymous" InvServerImpl is created and attached to the InvDataset. * * @param urlPath : construct URL from this path * @param dataType : data type * @param stype : ServiceType */ public InvDatasetImpl(String urlPath, FeatureType dataType, ServiceType stype) { super(null, "local file"); tm.setDataType(dataType); tm.setServiceName("anon"); this.urlPath = urlPath; // create anonymous service addService(new InvService(tm.getServiceName(), stype.toString(), "", "", null)); finish(); }
dataset.addService( s);
for (Element curElem : serviceList) { InvService s = readService(curElem, base); dataset.addService(s);
for (Element curElem : serviceList) { InvService s = readService(curElem, base); dataset.addService(s);