use of net.opengis.drt.x10.DeleteResultTemplateDocument in project arctic-sea by 52North.
the class DeleteResultTemplateDecoder method decode.
@Override
public DeleteResultTemplateRequest decode(XmlObject xmlObject) throws DecodingException {
LOGGER.debug(String.format("REQUESTTYPE: %s", xmlObject != null ? xmlObject.getClass() : "null recevied"));
XmlHelper.validateDocument(xmlObject);
if (xmlObject instanceof DeleteResultTemplateDocument) {
DeleteResultTemplateDocument drtd = (DeleteResultTemplateDocument) xmlObject;
DeleteResultTemplateRequest decodedRequest = parseDeleteResultTemplate(drtd);
LOGGER.debug(String.format("Decoded request: %s", decodedRequest));
return decodedRequest;
} else {
throw new UnsupportedDecoderInputException(this, xmlObject);
}
}
use of net.opengis.drt.x10.DeleteResultTemplateDocument in project arctic-sea by 52North.
the class DeleteResultTemplateDecoder method parseDeleteResultTemplate.
private DeleteResultTemplateRequest parseDeleteResultTemplate(DeleteResultTemplateDocument drtd) throws DecodingException {
DeleteResultTemplateRequest request = null;
DeleteResultTemplateType drtt = drtd.getDeleteResultTemplate();
request = new DeleteResultTemplateRequest();
request.setVersion(drtt.getVersion());
request.setService(drtt.getService());
if (drtt.sizeOfResultTemplateArray() > 0) {
parseResultTemplates(drtt.getResultTemplateArray(), request);
}
if (drtt.sizeOfTupleArray() > 0) {
parseObservedPropertyOfferingPairs(drtt.getTupleArray(), request);
}
return request;
}
Aggregations