@Override public Set<String> getOutputFormats() { final OutputFormatListType outputFormats = eType.getOutputFormats(); if (null == outputFormats) { return Collections.emptySet(); } @SuppressWarnings("unchecked") List<String> ftypeDeclaredFormats = outputFormats.getFormat(); if (null == ftypeDeclaredFormats || ftypeDeclaredFormats.isEmpty()) { return Collections.emptySet(); } return new HashSet<String>(ftypeDeclaredFormats); }
@Override public Set<String> getOutputFormats() { final OutputFormatListType outputFormats = eType.getOutputFormats(); if (null == outputFormats) { return Collections.emptySet(); } @SuppressWarnings("unchecked") List<String> ftypeDeclaredFormats = outputFormats.getFormat(); if (null == ftypeDeclaredFormats || ftypeDeclaredFormats.isEmpty()) { return Collections.emptySet(); } return new HashSet<String>(ftypeDeclaredFormats); }
/** * @see WFSProtocol#getSupportedOutputFormats(String) */ public Set<String> getSupportedOutputFormats(String typeName) { final Set<String> serviceOutputFormats = getSupportedGetFeatureOutputFormats(); final FeatureTypeType typeInfo = getFeatureTypeInfo(typeName); final OutputFormatListType outputFormats = typeInfo.getOutputFormats(); Set<String> ftypeFormats = new HashSet<String>(); if (outputFormats != null) { List<String> ftypeDeclaredFormats = outputFormats.getFormat(); ftypeFormats.addAll(ftypeDeclaredFormats); } ftypeFormats.addAll(serviceOutputFormats); return ftypeFormats; }
for (int i=0; i < featuretypes.size() ; i++){ net.opengis.wfs.FeatureTypeType ft = (FeatureTypeType) featuretypes.get(i); if (ft.getOutputFormats()!=null){ List value=ft.getOutputFormats().getFormat(); if (supportedByAllFeatureTypes ==null){ supportedByAllFeatureTypes=value;