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