use of net.opengis.sosdo.x10.DeleteObservationResponseDocument 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;
}
use of net.opengis.sosdo.x10.DeleteObservationResponseDocument in project arctic-sea by 52North.
the class DeleteObservationV20Encoder method create.
@Override
protected XmlObject create(DeleteObservationResponse dor) throws EncodingException {
if (dor == null) {
throw new UnsupportedEncoderInputException(this, DeleteObservationResponse.class);
}
DeleteObservationResponseDocument xbDeleteObsDoc = DeleteObservationResponseDocument.Factory.newInstance(getXmlOptions());
xbDeleteObsDoc.addNewDeleteObservationResponse();
return xbDeleteObsDoc;
}
Aggregations