/** * Maps to the capabilities' service identification abstract * * @see ServiceInfo#getDescription() */ public String getDescription() { ServiceIdentificationType serviceIdentification = capabilities.getServiceIdentification(); if (serviceIdentification == null) { return null; } // The Abstract is of Type LanguageStringType, not String. StringBuilder sb = new StringBuilder(); for (Object line : serviceIdentification.getAbstract()) { if (line instanceof LanguageStringType) { sb.append(((LanguageStringType) line).getValue()); } else { sb.append(line); } } // end of for return sb.toString(); }
for (Object line : serviceType.getAbstract()) { if (line instanceof LanguageStringType) { sb.append(((LanguageStringType) line).getValue());
/** * Maps to the capabilities' service identification abstract * * @see ServiceInfo#getDescription() */ public String getDescription() { ServiceIdentificationType serviceIdentification = capabilities.getServiceIdentification(); if (serviceIdentification == null) { return null; } @SuppressWarnings("unchecked") List<String> abs = serviceIdentification.getAbstract(); return abs == null || abs.isEmpty() ? null : abs.get(0); }
si.getAbstract().add(Ows11Util.languageString(wps.getAbstract()));
si.getAbstract().add(Ows11Util.languageString(wps.getAbstract()));