use of net.opengis.ows.x11.OperationsMetadataDocument.OperationsMetadata in project arctic-sea by 52North.
the class OwsEncoderv110 method encodeOperationsMetadata.
private OperationsMetadata encodeOperationsMetadata(OwsOperationsMetadata om) throws EncodingException {
OperationsMetadata xom = OperationsMetadata.Factory.newInstance(getXmlOptions());
om.getOperations().forEach(x -> encodeOwsOperation(x, xom.addNewOperation()));
om.getConstraints().forEach(x -> encodeOwsDomain(x, xom.addNewConstraint()));
om.getParameters().forEach(x -> encodeOwsDomain(x, xom.addNewParameter()));
if (om.getExtension().isPresent()) {
xom.setExtendedCapabilities(encodeOwsOperationsMetadataExtension(om.getExtension().get()));
}
return xom;
}
Aggregations