keywords.add(layer.getTitle()); keywords.add(capabilities.getService().getName()); keywords.add(source); keywords.addAll(getInfo().getKeywords());
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { Service service = new Service(); service.setName((String) value[i].getValue()); service.setTitle((String) value[i].getValue()); service.set_abstract((String) value[i].getValue()); service.setKeywordList((String[]) value[i].getValue()); service.setOnlineResource((URL) value[i].getValue()); service.setContactInformation(contactInfo); service.setLayerLimit(((Integer) value[i].getValue()).intValue()); service.setMaxWidth(((Integer) value[i].getValue()).intValue()); service.setMaxHeight(((Integer) value[i].getValue()).intValue());
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); }
Service service = new Service(); service.setName((String) value[i].getValue()); service.setTitle((String) value[i].getValue()); service.set_abstract((String) value[i].getValue()); service.setKeywordList(((String) value[i].getValue()).split( " ")); service.setOnlineResource(((URI) value[i].getValue()) .toURL()); } catch (MalformedURLException e1) { if ((service.getName() == null) || (service.getTitle() == null) || ((service.getOnlineResource()) == null)) { throw new SAXException( "Required Service Elements are missing, check"
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Service ret = new Service(); ret.setContactInformation((ResponsibleParty)node.getChildValue("ContactInformation")); ret.setKeywordList((String[])node.getChildValue("KeywordList")); ret.set_abstract((String)node.getChildValue("Abstract")); ret.setName((String)node.getChildValue("Name")); ret.setTitle((String)node.getChildValue("Title")); ret.setOnlineResource((URL)node.getChildValue("OnlineResource")); return ret; }
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();
properties.put("name", capabilities.getService().getName()); properties.put("remarks", capabilities.getService().get_abstract()); return new ParameterGroup(new DefaultParameterDescriptorGroup(properties, params));
public String getTitle() { if (capabilities != null && capabilities.getService() != null) { return capabilities.getService().getTitle(); } else if (serverURL == null) { return "Unavailable"; } else { return serverURL.toString(); } } }
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() { 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(); } }
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { Service service = new Service(); service.setName((String) value[i].getValue()); service.setTitle((String) value[i].getValue()); service.set_abstract((String) value[i].getValue()); service.setKeywordList((String[]) value[i].getValue()); service.setOnlineResource((URL) value[i].getValue()); service.setContactInformation(contactInfo); service.setLayerLimit(((Integer) value[i].getValue()).intValue()); service.setMaxWidth(((Integer) value[i].getValue()).intValue()); service.setMaxHeight(((Integer) value[i].getValue()).intValue());
} 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);
public String getTitle() { return capabilities.getService().getTitle(); }
public String getDescription() { return capabilities.getService().get_abstract(); }
public Set<String> getKeywords() { String[] keywordList = capabilities.getService().getKeywordList(); if (keywordList == null) { return Collections.emptySet(); } return new HashSet<String>(Arrays.asList(keywordList)); }
OperationNotSupportedException { Service service = new Service(); service.setName((String) value[i].getValue()); service.setTitle((String) value[i].getValue()); service.set_abstract((String) value[i].getValue()); service.setKeywordList((String[]) value[i].getValue()); service.setOnlineResource((URL) value[i].getValue()); service.setContactInformation(contactInfo); service.setLayerLimit(((Integer) value[i].getValue()) .intValue()); service.setMaxWidth(((Integer) value[i].getValue()) .intValue()); service.setMaxHeight(((Integer) value[i].getValue()) .intValue());
} 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);
public String getTitle() { if (capabilities != null && capabilities.getService() != null) { return capabilities.getService().getTitle(); } else if (serverURL == null) { return "Unavailable"; } else { return serverURL.toString(); } } }
public String getAbstract() { return (caps == null) ? null : ((caps.getService() == null) ? null : caps.getService() .get_abstract()); }