use of org.olat.imsmd.xml.manifest.DescriptionType in project OpenOLAT by OpenOLAT.
the class ManifestMetadataBuilder method setDescription.
public void setDescription(String description, String lang) {
GeneralType general = getGeneral(true);
if (general != null) {
DescriptionType type = getFromAny(DescriptionType.class, general.getContent());
if (type == null) {
type = mdObjectFactory.createDescriptionType();
general.getContent().add(mdObjectFactory.createDescription(type));
}
createOrUpdateFirstLangstring(type.getLangstring(), description, lang);
}
}
use of org.olat.imsmd.xml.manifest.DescriptionType in project openolat by klemens.
the class ManifestMetadataBuilder method setDescription.
public void setDescription(String description, String lang) {
GeneralType general = getGeneral(true);
if (general != null) {
DescriptionType type = getFromAny(DescriptionType.class, general.getContent());
if (type == null) {
type = mdObjectFactory.createDescriptionType();
general.getContent().add(mdObjectFactory.createDescription(type));
}
createOrUpdateFirstLangstring(type.getLangstring(), description, lang);
}
}
Aggregations