Search in sources :

Example 1 with CoverageType

use of org.olat.imsmd.xml.manifest.CoverageType in project OpenOLAT by OpenOLAT.

the class ManifestMetadataBuilder method setCoverage.

public void setCoverage(String coverage, String lang) {
    GeneralType general = getGeneral(true);
    if (general != null) {
        CoverageType type = getFromAny(CoverageType.class, general.getContent());
        if (type == null) {
            type = mdObjectFactory.createCoverageType();
            general.getContent().add(mdObjectFactory.createCoverage(type));
        }
        createOrUpdateFirstLangstring(type.getLangstring(), coverage, lang);
    }
}
Also used : CoverageType(org.olat.imsmd.xml.manifest.CoverageType) GeneralType(org.olat.imsmd.xml.manifest.GeneralType)

Example 2 with CoverageType

use of org.olat.imsmd.xml.manifest.CoverageType in project openolat by klemens.

the class ManifestMetadataBuilder method setCoverage.

public void setCoverage(String coverage, String lang) {
    GeneralType general = getGeneral(true);
    if (general != null) {
        CoverageType type = getFromAny(CoverageType.class, general.getContent());
        if (type == null) {
            type = mdObjectFactory.createCoverageType();
            general.getContent().add(mdObjectFactory.createCoverage(type));
        }
        createOrUpdateFirstLangstring(type.getLangstring(), coverage, lang);
    }
}
Also used : CoverageType(org.olat.imsmd.xml.manifest.CoverageType) GeneralType(org.olat.imsmd.xml.manifest.GeneralType)

Aggregations

CoverageType (org.olat.imsmd.xml.manifest.CoverageType)2 GeneralType (org.olat.imsmd.xml.manifest.GeneralType)2