use of org.n52.shetland.ogc.sos.ro.OfferingContext in project arctic-sea by 52North.
the class RelatedOfferingTypeDecoder method parseRelatedOffering.
private OfferingContext parseRelatedOffering(RelatedOffering relatedOffering) throws DecodingException {
ReferenceType role = decodeXmlElement(relatedOffering.getOfferingContext().getRole());
ReferenceType relOff = decodeXmlElement(relatedOffering.getOfferingContext().getRelatedOffering());
return new OfferingContext(role, relOff);
}
use of org.n52.shetland.ogc.sos.ro.OfferingContext in project arctic-sea by 52North.
the class RelatedOfferingXmlStreamWriter method writeRelatedOfferingsDoc.
private void writeRelatedOfferingsDoc() throws XMLStreamException {
start(RelatedOfferingConstants.QN_RO_RELATED_OFFERINGS);
namespace(W3CConstants.NS_XLINK_PREFIX, W3CConstants.NS_XLINK);
namespace(RelatedOfferingConstants.NS_RO_PREFIX, RelatedOfferingConstants.NS_RO);
namespace(GmlConstants.NS_GML_PREFIX, GmlConstants.NS_GML_32);
addXlinkHrefAttr(RelatedOfferingConstants.RELATED_OFFERINGS);
addXlinkTitleAttr(RelatedOfferingConstants.RELATED_OFFERINGS);
for (OfferingContext offeringContext : getElement().getValue()) {
start(RelatedOfferingConstants.QN_RO_RELATED_OFFERING);
writeOfferingContext(offeringContext);
end(RelatedOfferingConstants.QN_RO_RELATED_OFFERING);
}
end(RelatedOfferingConstants.QN_RO_RELATED_OFFERINGS);
}
Aggregations