private boolean filter( InvDataset d) { if (serviceType == null) return true; return d.getAccess( serviceType) != null; }
private boolean filter( InvDataset d) { if (serviceType == null) return true; return d.getAccess( serviceType) != null; }
private boolean filter( InvDataset d) { if (serviceType == null) return true; return d.getAccess( serviceType) != null; }
/** * Get access element that matches the given access standard URL. * Match on a.getStandardUrlName(). * * @param accessURL find theis access URL string * @return InvAccess or null if no match. */ public InvAccess findAccess(String accessURL) { for (InvAccess a : getAccess()) { if (accessURL.equals(a.getStandardUrlName())) return a; } return null; }
/** * Get access element that matches the given access standard URL. * Match on a.getStandardUrlName(). * * @param accessURL find theis access URL string * @return InvAccess or null if no match. */ public InvAccess findAccess(String accessURL) { for (InvAccess a : getAccess()) { if (accessURL.equals(a.getStandardUrlName())) return a; } return null; }
/** * Get access element that matches the given access standard URL. * Match on a.getStandardUrlName(). * * @param accessURL find theis access URL string * @return InvAccess or null if no match. */ public InvAccess findAccess(String accessURL) { for (InvAccess a : getAccess()) { if (accessURL.equals(a.getStandardUrlName())) return a; } return null; }
public void getDataset(InvDataset dd, Object context) { InvAccess access = tdataFactory.chooseDatasetAccess(dd.getAccess()); if (null != access) transfer(access.getStandardUrlName(), copyDir); } public boolean getCatalogRef(InvCatalogRef dd, Object context) { return true; }
public void getDataset(InvDataset dd, Object context) { InvAccess access = tdataFactory.chooseDatasetAccess(dd.getAccess()); if (null != access) transfer(access.getStandardUrlName(), copyDir); } public boolean getCatalogRef(InvCatalogRef dd, Object context) { return true; }
public void getDataset(InvDataset dd, Object context) { InvAccess access = tdataFactory.chooseDatasetAccess(dd.getAccess()); if (null != access) transfer(access.getStandardUrlName(), copyDir); } public boolean getCatalogRef(InvCatalogRef dd, Object context) { return true; }
/** * Get access element of the specified service type for this dataset. * If more than one, get the first one. * * @param type find this ServiceType * @return InvAccess or null if there is not one. */ public InvAccess getAccess(thredds.catalog.ServiceType type) { for (InvAccess a : getAccess()) { InvService s = a.getService(); if (s.getServiceType() == type) return a; } return null; }
/** * Get access element of the specified service type for this dataset. * If more than one, get the first one. * * @param type find this ServiceType * @return InvAccess or null if there is not one. */ public InvAccess getAccess(thredds.catalog.ServiceType type) { for (InvAccess a : getAccess()) { InvService s = a.getService(); if (s.getServiceType() == type) return a; } return null; }
/** * Get access element of the specified service type for this dataset. * If more than one, get the first one. * * @param type find this ServiceType * @return InvAccess or null if there is not one. */ public InvAccess getAccess(thredds.catalog.ServiceType type) { for (InvAccess a : getAccess()) { InvService s = a.getService(); if (s.getServiceType() == type) return a; } return null; }
@Override public void getDataset(InvDataset ds, Object context) { if (ds.hasAccess()) { ThreddsDataFactory tdataFactory = new ThreddsDataFactory(); InvAccess access = tdataFactory.chooseDatasetAccess(ds.getAccess()); if (access == null) throw new IllegalStateException(); MFileRemote mfile = new MFileRemote(access); if (mfile.getPath().endsWith(".xml")) return; // eliminate latest.xml LOOK kludge-o-rama mfiles.add(mfile); if (debug) System.out.format("add %s %n", mfile.getPath()); } }
public int accept( InvDataset d) { // check all access for any that has this servicee for (InvAccess a : d.getAccess()) { if (a.getService().getServiceType() == type) return 1; } // cant tell about DQC and resolvers !! for (InvAccess a : d.getAccess()) { if (a.getService().getServiceType() == ServiceType.QC) return 0; if (a.getService().getServiceType() == ServiceType.RESOLVER) return 0; } return -1; } }
public int accept( InvDataset d) { // check all access for any that has this servicee for (InvAccess a : d.getAccess()) { if (a.getService().getServiceType() == type) return 1; } // cant tell about DQC and resolvers !! for (InvAccess a : d.getAccess()) { if (a.getService().getServiceType() == ServiceType.QC) return 0; if (a.getService().getServiceType() == ServiceType.RESOLVER) return 0; } return -1; } }
public int accept( InvDataset d) { // check all access for any that has this servicee for (InvAccess a : d.getAccess()) { if (a.getService().getServiceType() == type) return 1; } // cant tell about DQC and resolvers !! for (InvAccess a : d.getAccess()) { if (a.getService().getServiceType() == ServiceType.QC) return 0; if (a.getService().getServiceType() == ServiceType.RESOLVER) return 0; } return -1; } }
@Override public void getDataset(InvDataset ds, Object context) { if (ds.hasAccess()) { ThreddsDataFactory tdataFactory = new ThreddsDataFactory(); InvAccess access = tdataFactory.chooseDatasetAccess(ds.getAccess()); MFileRemote mfile = new MFileRemote(access); if (mfile.getPath().endsWith(".xml")) return; // eliminate latest.xml LOOK kludge-o-rama java.util.Map<String, MFile> map = (java.util.Map<String, MFile>) context; map.put(mfile.getPath(), mfile); if (debug) System.out.format("add %s %n", mfile.getPath()); } }
void findServices(List<InvService> result, InvDataset ds) { if (ds instanceof InvCatalogRef) return; // look for access elements with unresolved services for (InvAccess a : ds.getAccess()) { InvService s = a.getService(); InvDataset d = a.getDataset(); if (null == d.findService(s.getName()) && !(result.contains(s))) result.add(s); } // recurse into nested datasets for (InvDataset nested : ds.getDatasets()) { findServices(result, nested); } }
void findServices(List<InvService> result, InvDataset ds) { if (ds instanceof InvCatalogRef) return; // look for access elements with unresolved services for (InvAccess a : ds.getAccess()) { InvService s = a.getService(); InvDataset d = a.getDataset(); if (null == d.findService(s.getName()) && !(result.contains(s))) result.add(s); } // recurse into nested datasets for (InvDataset nested : ds.getDatasets()) { findServices(result, nested); } }
void findServices(List<InvService> result, InvDataset ds) { if (ds instanceof InvCatalogRef) return; // look for access elements with unresolved services for (InvAccess a : ds.getAccess()) { InvService s = a.getService(); InvDataset d = a.getDataset(); if (null == d.findService(s.getName()) && !(result.contains(s))) result.add(s); } // recurse into nested datasets for (InvDataset nested : ds.getDatasets()) { findServices(result, nested); } }