public String getAbstract() { return (caps == null) ? null : ((caps.getService() == null) ? null : caps.getService() .get_abstract()); }
public String getDescription() { String description = null; if (capabilities != null && capabilities.getService() != null) { description = capabilities.getService().get_abstract(); } if (description == null) { description = "Web Map Server " + serverURL; } return description; }
public String getTitle() { if (capabilities != null && capabilities.getService() != null) { return capabilities.getService().getTitle(); } else if (serverURL == null) { return "Unavailable"; } else { return serverURL.toString(); } } }
WMSInfo() { keywords = new HashSet<String>(); if (capabilities.getService() != null) { String array[] = capabilities.getService().getKeywordList(); if (array != null) { keywords.addAll(Arrays.asList(array)); } } keywords.add("WMS"); keywords.add(serverURL.toString()); URL globe2 = WebMapServer.class.getResource("Globe2.png"); icon = new ImageIcon(globe2); }
public String getTitle() { return ((caps == null) || (caps.getService() == null)) ? ((getIdentifier() == null) ? "BROKEN" //$NON-NLS-1$ : getIdentifier().toString()) : caps.getService().getTitle(); } }
public String getTitle() { String title = layer.getTitle(); if (title != null && title.length() != 0) { return title; } else { // often the "root" layer has no title, the service title // is what is intended return getCapabilities().getService().getTitle(); } } }
public String getDescription() { String description = layer.get_abstract(); if (description != null && description.length() != 0) { return description; } else { return getCapabilities().getService().get_abstract(); } }
WMSServiceInfo(ProgressListener monitor) { try { caps = getWMS(monitor).getCapabilities(); } catch (Throwable t) { t.printStackTrace(); caps = null; } keywords = (caps == null) ? null : ((caps.getService() == null) ? null : caps.getService() .getKeywordList()); String[] t; if (keywords == null) { t = new String[2]; } else { t = new String[keywords.length + 2]; System.arraycopy(keywords, 0, t, 2, keywords.length); } t[0] = "WMS"; //$NON-NLS-1$ t[1] = getIdentifier().toString(); keywords = t; }
public URI getPublisher() { try { return capabilities .getService() .getContactInformation() .getContactInfo() .getOnLineResource() .getLinkage(); } catch (NullPointerException publisherNotAvailable) { } try { return new URI(serverURL.getProtocol() + ":" + serverURL.getHost()); } catch (URISyntaxException e) { } return null; }
} else if (value instanceof WMSCapabilities) { WMSCapabilities capabilities = (WMSCapabilities) value; text = String.format("<html><b>%s</b></html>", capabilities.getService().getName()); } else { text = String.format("<html><b>%s</b></html>", value);
} else if (value instanceof WMSCapabilities) { WMSCapabilities capabilities = (WMSCapabilities) value; text = String.format("<html><b>%s</b></html>", capabilities.getService().getName()); } else { text = String.format("<html><b>%s</b></html>", value);
name = layer.getName(); List keywordsFromWMS = new ArrayList(); if (caps.getService().getKeywordList() != null) { keywordsFromWMS.addAll( Arrays.asList( caps.getService().getKeywordList() )); keywordsFromWMS.add( caps.getService().getName() ); keywordsFromWMS.add( parentid ); keywords = (String[]) keywordsFromWMS.toArray(new String[keywordsFromWMS.size()]); description = layer.get_abstract(); } else { description = caps.getService().get_abstract(); description = caps.getService().get_abstract(); title = caps.getService().getTitle();
keywords.add(layer.getTitle()); keywords.add(capabilities.getService().getName()); keywords.add(source); keywords.addAll(getInfo().getKeywords());
properties.put("name", capabilities.getService().getName()); properties.put("remarks", capabilities.getService().get_abstract()); return new ParameterGroup(new DefaultParameterDescriptorGroup(properties, params));