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);
}
}
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);
}
}
Aggregations