protected InvProperty readProperty(Element s) { String name = s.getAttributeValue("name"); String value = s.getAttributeValue("value"); return new InvProperty(name, value); }
protected InvProperty readProperty( Element s) { String name = s.getAttributeValue("name"); String value = s.getAttributeValue("value"); return new InvProperty( name, value); }
protected InvProperty readProperty(Element s) { String name = s.getAttributeValue("name"); String value = s.getAttributeValue("value"); return new InvProperty(name, value); }
public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); } }
public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); } }
public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); } }
public void addProperties(List<Attribute> atts) { for (Attribute att : atts) if (att.isString()) properties.add(new InvProperty(att.getShortName(), att.getStringValue())); }
private synchronized void read() { if (init) return; URI uriResolved = getURI(); if (uriResolved == null) { // this is to display an error message proxy = new InvDatasetImpl(null, "HREF ERROR"); proxy.addProperty(new InvProperty("HREF ERROR", errMessage)); datasets.add(proxy); init = true; return; } // open and read the referenced catalog XML try { if (debug) System.out.println(" InvCatalogRef read " + getFullName() + " hrefResolved = " + uriResolved); InvCatalogFactory factory = InvCatalogFactory.getDefaultFactory(true); // InvCatalogFactory factory = ((InvCatalogImpl) getParentCatalog()).getCatalogFactory(); InvCatalogImpl cat = factory.readXML(uriResolved.toString()); finishCatalog(cat); } catch (Exception e) { // this is to display an error message proxy = new InvDatasetImpl(null, "HREF ERROR"); if (debug) System.out.println("HREF ERROR =\n " + href + " err= " + e.getMessage()); proxy.addProperty(new InvProperty("HREF ERROR", href)); datasets.add(proxy); init = true; } }
if (debug) System.out.println(errMessage); proxy.addProperty(new InvProperty("HREF ERROR", errMessage)); datasets.add(proxy); init = true; if (debug) System.out.println("HREF ERROR =\n " + href + " err= " + e.getMessage()); proxy.addProperty(new InvProperty("HREF ERROR", href)); datasets.add(proxy); init = true;
private synchronized void read() { if (init) return; URI uriResolved = getURI(); if (uriResolved == null) { // this is to display an error message proxy = new InvDatasetImpl(null, "HREF ERROR"); proxy.addProperty(new InvProperty("HREF ERROR", errMessage)); datasets.add(proxy); init = true; return; } // open and read the referenced catalog XML try { if (debug) System.out.println(" InvCatalogRef read " + getFullName() + " hrefResolved = " + uriResolved); InvCatalogFactory factory = InvCatalogFactory.getDefaultFactory(true); // InvCatalogFactory factory = ((InvCatalogImpl) getParentCatalog()).getCatalogFactory(); InvCatalogImpl cat = factory.readXML(uriResolved.toString()); finishCatalog(cat); } catch (Exception e) { // this is to display an error message proxy = new InvDatasetImpl(null, "HREF ERROR"); if (debug) System.out.println("HREF ERROR =\n " + href + " err= " + e.getMessage()); proxy.addProperty(new InvProperty("HREF ERROR", href)); datasets.add(proxy); init = true; } }
if (debug) System.out.println("HREF ERROR =\n " + href + " err= " + e.getMessage()); proxy.addProperty(new InvProperty("HREF ERROR", href)); datasets.add(proxy); return; if (debug) System.out.println("HREF ERROR =\n " + href + " err= " + e.getMessage()); proxy.addProperty(new InvProperty("HREF ERROR", href)); datasets.add(proxy);
public ResultService( InvService service, String accessPointHeader) { super( service.getName(), service.getServiceType().toString(), service.getBase(), service.getSuffix(), service.getDescription()); for ( Iterator it = service.getProperties().iterator(); it.hasNext(); ) { InvProperty prop = (InvProperty) it.next(); addProperty( new InvProperty( prop.getName(), prop.getValue())); // LOOK JC changed } if ( service.getServiceType() == ServiceType.COMPOUND) { for ( Iterator it = service.getServices().iterator(); it.hasNext(); ) { addService( (InvService) it.next() ); // LOOK JC changed } } this.accessPointHeader = accessPointHeader; }
public ResultService( InvService service, String accessPointHeader) { super( service.getName(), service.getServiceType().toString(), service.getBase(), service.getSuffix(), service.getDescription()); for ( Iterator it = service.getProperties().iterator(); it.hasNext(); ) { InvProperty prop = (InvProperty) it.next(); addProperty( new InvProperty( prop.getName(), prop.getValue())); // LOOK JC changed } if ( service.getServiceType() == ServiceType.COMPOUND) { for ( Iterator it = service.getServices().iterator(); it.hasNext(); ) { addService( (InvService) it.next() ); // LOOK JC changed } } this.accessPointHeader = accessPointHeader; }
if (debug) System.out.println("HREF ERROR =\n " + href + " err= " + e.getMessage()); proxy.addProperty(new InvProperty("HREF ERROR", href)); datasets.add(proxy); return; if (debug) System.out.println("HREF ERROR =\n " + href + " err= " + e.getMessage()); proxy.addProperty(new InvProperty("HREF ERROR", href)); datasets.add(proxy);
if (debug) System.out.println("HREF ERROR =\n " + href + " err= " + e.getMessage()); proxy.addProperty(new InvProperty("HREF ERROR", href)); datasets.add(proxy); return; if (debug) System.out.println("HREF ERROR =\n " + href + " err= " + e.getMessage()); proxy.addProperty(new InvProperty("HREF ERROR", href)); datasets.add(proxy);
public ResultService( InvService service, String accessPointHeader) { super( service.getName(), service.getServiceType().toString(), service.getBase(), service.getSuffix(), service.getDescription()); for ( Iterator it = service.getProperties().iterator(); it.hasNext(); ) { InvProperty prop = (InvProperty) it.next(); addProperty( new InvProperty( prop.getName(), prop.getValue())); // LOOK JC changed } if ( service.getServiceType() == ServiceType.COMPOUND) { for ( Iterator it = service.getServices().iterator(); it.hasNext(); ) { addService( (InvService) it.next() ); // LOOK JC changed } } this.accessPointHeader = accessPointHeader; }
cat.check(out); if (debug) System.out.println("PARSE ERROR =\n " + out.toString()); proxy.addProperty(new InvProperty("ERROR OPENING", out.toString())); proxy.finish(); if (proxy.getMark()) { proxy.setName(proxy.getName() + " (EMPTY)"); proxy.addProperty(new InvProperty("isEmpty", "true")); proxy.finish();
cat.check(out); if (debug) System.out.println("PARSE ERROR =\n " + out.toString()); proxy.addProperty(new InvProperty("ERROR OPENING", out.toString())); proxy.finish(); if (proxy.getMark()) { proxy.setName(proxy.getName() + " (EMPTY)"); proxy.addProperty(new InvProperty("isEmpty", "true")); proxy.finish();
cat.check(out); if (debug) System.out.println("PARSE ERROR =\n " + out.toString()); proxy.addProperty(new InvProperty("ERROR OPENING", out.toString())); proxy.finish(); if (proxy.getMark()) { proxy.setName(proxy.getName() + " (EMPTY)"); proxy.addProperty(new InvProperty("isEmpty", "true")); proxy.finish();
dsElem.setAttribute("title", ds.getName(), xlinkNS); dsElem.setAttribute("name", ""); dsElem.addContent(writeProperty(new InvProperty("DatasetScan", "true"))); } else { dsElem = new Element("dataset", defNS);