use of net.opengis.sos.x20.InsertionCapabilitiesType in project arctic-sea by 52North.
the class GetCapabilitiesResponseEncoder method createInsertionCapabilities.
private XmlObject createInsertionCapabilities(SosInsertionCapabilities caps) {
InsertionCapabilitiesDocument doc = InsertionCapabilitiesDocument.Factory.newInstance(getXmlOptions());
InsertionCapabilitiesType xbCaps = doc.addNewInsertionCapabilities();
caps.getFeatureOfInterestTypes().stream().filter(foiType -> !foiType.equals(SosConstants.NOT_DEFINED)).forEachOrdered(foiType -> xbCaps.addFeatureOfInterestType(foiType));
caps.getObservationTypes().stream().filter(oType -> !oType.equals(SosConstants.NOT_DEFINED)).forEachOrdered(oType -> xbCaps.addObservationType(oType));
caps.getProcedureDescriptionFormats().stream().filter(pdf -> !pdf.equals(SosConstants.NOT_DEFINED)).forEachOrdered(pdf -> xbCaps.addProcedureDescriptionFormat(pdf));
caps.getSupportedEncodings().stream().filter(se -> !se.equals(SosConstants.NOT_DEFINED)).forEachOrdered(se -> xbCaps.addSupportedEncoding(se));
return doc;
}
Aggregations