Search in sources :

Example 1 with DQConformanceResultType

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());
}
Also used : DQConformanceResultType(org.isotc211.x2005.gmd.DQConformanceResultType)

Aggregations

DQConformanceResultType (org.isotc211.x2005.gmd.DQConformanceResultType)1