Search in sources :

Example 1 with DeleteObservationResponseType

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;
}
Also used : DeleteObservationResponseType(net.opengis.sosdo.x10.DeleteObservationResponseType) DeleteObservationResponseDocument(net.opengis.sosdo.x10.DeleteObservationResponseDocument) UnsupportedEncoderInputException(org.n52.svalbard.encode.exception.UnsupportedEncoderInputException)

Aggregations

DeleteObservationResponseDocument (net.opengis.sosdo.x10.DeleteObservationResponseDocument)1 DeleteObservationResponseType (net.opengis.sosdo.x10.DeleteObservationResponseType)1 UnsupportedEncoderInputException (org.n52.svalbard.encode.exception.UnsupportedEncoderInputException)1