@Override public Object parse(String value) throws Exception { List<String> sectionNames = KvpUtils.readFlat(value); SectionsType sections = Ows11Factory.eINSTANCE.createSectionsType(); sections.getSection().addAll(sectionNames); return sections; }
if (owsSections != null) { Sections sections = Wcs20Factory.eINSTANCE.createSections(); for (Object o : owsSections.getSection()) { String sectionName = (String) o; Section section = Section.get(sectionName);
sections = Collections.emptyList(); } else { sections = request.getSections().getSection(); allSections = sections.contains("All");
sections = Collections.emptyList(); } else { sections = request.getSections().getSection(); allSections = sections.contains("All");
assertEquals(1, cap.getAcceptVersions().getVersion().size()); assertEquals("1.0.0", cap.getAcceptVersions().getVersion().get(0)); assertEquals(1, cap.getSections().getSection().size()); assertEquals("Section1", cap.getSections().getSection().get(0)); assertEquals(1, cap.getAcceptFormats().getOutputFormat().size()); assertEquals("text/xml", cap.getAcceptFormats().getOutputFormat().get(0));