/*** Finish constructing after all elements have been added. * @return true if successful. **/ public boolean finish() { if (serviceName != null) { this.service = dataset.findService(serviceName); if (this.service == null) log.append("**InvAccess in (").append(dataset.getFullName()).append("): has unknown service named (").append(serviceName).append(")\n"); } // check urlPath is ok try { new java.net.URI(urlPath); } catch (java.net.URISyntaxException e) { log.append("**InvAccess in (").append(dataset.getFullName()).append("):\n" + " urlPath= ").append(urlPath).append(")\n URISyntaxException=").append(e.getMessage()); } return true; }
/*** Finish constructing after all elements have been added. * @return true if successful. **/ public boolean finish() { if (serviceName != null) { this.service = dataset.findService(serviceName); if (this.service == null) log.append("**InvAccess in (").append(dataset.getFullName()).append("): has unknown service named (").append(serviceName).append(")\n"); } // check urlPath is ok try { new java.net.URI(urlPath); } catch (java.net.URISyntaxException e) { log.append("**InvAccess in (").append(dataset.getFullName()).append("):\n" + " urlPath= ").append(urlPath).append(")\n URISyntaxException=").append(e.getMessage()); } return true; }
/*** Finish constructing after all elements have been added. * @return true if successful. **/ public boolean finish() { if (serviceName != null) { this.service = dataset.findService(serviceName); if (this.service == null) log.append("**InvAccess in (").append(dataset.getFullName()).append("): has unknown service named (").append(serviceName).append(")\n"); } // check urlPath is ok try { new java.net.URI(urlPath); } catch (java.net.URISyntaxException e) { log.append("**InvAccess in (").append(dataset.getFullName()).append("):\n" + " urlPath= ").append(urlPath).append(")\n URISyntaxException=").append(e.getMessage()); } return true; }
/** * Find the named service declared in this dataset or one of its parents. * * @param name match this name * @return first service that matches the given name, or null if none found. */ public InvService findService(String name) { if (name == null) return null; // search local (but expanded) services for (InvService p : services) { if (p.getName().equals(name)) return p; } // not found, look in parent if (parent != null) return parent.findService(name); return (catalog == null) ? null : catalog.findService(name); }
/** * Find the named service declared in this dataset or one of its parents. * * @param name match this name * @return first service that matches the given name, or null if none found. */ public InvService findService(String name) { if (name == null) return null; // search local (but expanded) services for (InvService p : services) { if (p.getName().equals(name)) return p; } // not found, look in parent if (parent != null) return parent.findService(name); return (catalog == null) ? null : catalog.findService(name); }
/** * Find the named service declared in this dataset or one of its parents. * * @param name match this name * @return first service that matches the given name, or null if none found. */ public InvService findService(String name) { if (name == null) return null; // search local (but expanded) services for (InvService p : services) { if (p.getName().equals(name)) return p; } // not found, look in parent if (parent != null) return parent.findService(name); return (catalog == null) ? null : catalog.findService(name); }
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); } }