use of org.isotc211.x2005.gmd.DQElementPropertyType 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());
}
}
Aggregations