use of net.opengis.sosdo.x10.DeleteObservationResponseType in project arctic-sea by 52North.
the class DeleteObservationEncoder method create.
@Override
protected XmlObject create(DeleteObservationResponse dor) throws EncodingException {
if (dor == null) {
throw new UnsupportedEncoderInputException(this, DeleteObservationResponse.class);
}
String observationId = dor.getObservationId();
DeleteObservationResponseDocument xbDeleteObsDoc = DeleteObservationResponseDocument.Factory.newInstance(getXmlOptions());
DeleteObservationResponseType xbDeleteObservationResponse = xbDeleteObsDoc.addNewDeleteObservationResponse();
xbDeleteObservationResponse.setDeletedObservation(observationId);
return xbDeleteObsDoc;
}
Aggregations