use of net.opengis.drt.x10.DeleteResultTemplateResponseDocument 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;
}
Aggregations