/** * Maps to the capabilities' service identification abstract * * @see ServiceInfo#getDescription() */ public String getDescription() { ServiceIdentificationType serviceIdentification = capabilities.getServiceIdentification(); return serviceIdentification == null ? null : serviceIdentification.getAbstract(); }
/** @see ServiceInfo#getTitle() */ public String getTitle() { ServiceIdentificationType serviceIdentification = capabilities.getServiceIdentification(); return serviceIdentification == null ? null : serviceIdentification.getTitle(); }
/** * Maps to the capabilities' service identification keywords list * * @see ServiceInfo#getDescription() */ public Set<String> getKeywords() { Set<String> kws = new HashSet<String>(); ServiceIdentificationType serviceIdentification = capabilities.getServiceIdentification(); if (serviceIdentification != null) { @SuppressWarnings("unchecked") List<KeywordsType> keywords = serviceIdentification.getKeywords(); if (keywords != null) { for (KeywordsType k : keywords) { kws.addAll(k.getKeyword()); } kws.remove(null); } } return kws; }
/** * Maps to the capabilities' service identification abstract * * @see ServiceInfo#getDescription() */ public String getDescription() { ServiceIdentificationType serviceIdentification = capabilities.getServiceIdentification(); return serviceIdentification == null ? null : serviceIdentification.getAbstract(); }
/** @see ServiceInfo#getTitle() */ public String getTitle() { ServiceIdentificationType serviceIdentification = capabilities.getServiceIdentification(); return serviceIdentification == null ? null : serviceIdentification.getTitle(); }
private ServiceIdentificationType getServiceIdentification() { ServiceIdentificationType serviceId = capabilities.getServiceIdentification(); if (serviceId == null) { LOGGER.info("Capabilities did not provide a ServiceIdentification section"); serviceId = Ows10Factory.eINSTANCE.createServiceIdentificationType(); capabilities.setServiceIdentification(serviceId); } return serviceId; }
/** * Maps to the capabilities' service identification keywords list * * @see ServiceInfo#getDescription() */ public Set<String> getKeywords() { Set<String> kws = new HashSet<String>(); ServiceIdentificationType serviceIdentification = capabilities.getServiceIdentification(); if (serviceIdentification != null) { @SuppressWarnings("unchecked") List<KeywordsType> keywords = serviceIdentification.getKeywords(); if (keywords != null) { for (KeywordsType k : keywords) { kws.addAll(k.getKeyword()); } kws.remove(null); } } return kws; }