Search in sources :

Example 1 with OmResultQuality

use of org.n52.shetland.ogc.om.quality.OmResultQuality in project arctic-sea by 52North.

the class AbstractOmEncoderv20 method encodeResultQualities.

private void encodeResultQualities(OMObservationType xbObservation, Set<OmResultQuality> resultQuality) throws EncodingException {
    for (OmResultQuality quality : resultQuality) {
        AbstractDQElementDocument encodedQuality = (AbstractDQElementDocument) encodeObjectToXml(null, quality, EncodingContext.of(XmlBeansEncodingFlags.DOCUMENT));
        DQElementPropertyType addNewResultQuality = xbObservation.addNewResultQuality();
        addNewResultQuality.setAbstractDQElement(encodedQuality.getAbstractDQElement());
        XmlHelper.substituteElement(addNewResultQuality.getAbstractDQElement(), encodedQuality.getAbstractDQElement());
    }
}
Also used : DQElementPropertyType(org.isotc211.x2005.gmd.DQElementPropertyType) OmResultQuality(org.n52.shetland.ogc.om.quality.OmResultQuality) AbstractDQElementDocument(org.isotc211.x2005.gmd.AbstractDQElementDocument)

Aggregations

AbstractDQElementDocument (org.isotc211.x2005.gmd.AbstractDQElementDocument)1 DQElementPropertyType (org.isotc211.x2005.gmd.DQElementPropertyType)1 OmResultQuality (org.n52.shetland.ogc.om.quality.OmResultQuality)1