use of org.isotc211.x2005.gmd.DQConformanceResultType in project arctic-sea by 52North.
the class Iso19139GmdEncoder method encodeGmdConformanceResult.
private void encodeGmdConformanceResult(DQResultPropertyType xbResult, GmdConformanceResult gmdConformanceResult) {
DQConformanceResultType dqConformanceResultType = (DQConformanceResultType) xbResult.addNewAbstractDQResult().substitute(QN_GMD_CONFORMANCE_RESULT, DQConformanceResultType.type);
if (gmdConformanceResult.isSetPassNilReason()) {
dqConformanceResultType.addNewPass().setNilReason(gmdConformanceResult.getPassNilReason().name());
} else {
dqConformanceResultType.addNewPass().setBoolean(gmdConformanceResult.isPass());
}
dqConformanceResultType.addNewExplanation().setCharacterString(gmdConformanceResult.getSpecification().getExplanation());
encodeCiCitation(dqConformanceResultType.addNewSpecification(), gmdConformanceResult.getSpecification().getCitation());
}
Aggregations