Search in sources :

Example 1 with DeleteResultTemplateResponseType

use of net.opengis.drt.x10.DeleteResultTemplateResponseType in project arctic-sea by 52North.

the class DeleteResultTemplateEncoder method create.

@Override
protected XmlObject create(DeleteResultTemplateResponse drtr) throws EncodingException {
    if (drtr == null) {
        throw new UnsupportedEncoderInputException(this, DeleteResultTemplateResponse.class);
    }
    DeleteResultTemplateResponseDocument drtrd = DeleteResultTemplateResponseDocument.Factory.newInstance(getXmlOptions());
    DeleteResultTemplateResponseType drtrt = drtrd.addNewDeleteResultTemplateResponse();
    if (drtr.isSetResultTemplates()) {
        for (String resultTemplate : drtr.getResultTemplates()) {
            drtrt.addDeletedTemplate(resultTemplate);
        }
    }
    return drtrd;
}
Also used : DeleteResultTemplateResponseType(net.opengis.drt.x10.DeleteResultTemplateResponseType) DeleteResultTemplateResponseDocument(net.opengis.drt.x10.DeleteResultTemplateResponseDocument) UnsupportedEncoderInputException(org.n52.svalbard.encode.exception.UnsupportedEncoderInputException)

Aggregations

DeleteResultTemplateResponseDocument (net.opengis.drt.x10.DeleteResultTemplateResponseDocument)1 DeleteResultTemplateResponseType (net.opengis.drt.x10.DeleteResultTemplateResponseType)1 UnsupportedEncoderInputException (org.n52.svalbard.encode.exception.UnsupportedEncoderInputException)1