Search in sources :

Example 1 with TitleType

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);
    }
}
Also used : TitleType(org.olat.imsmd.xml.manifest.TitleType) GeneralType(org.olat.imsmd.xml.manifest.GeneralType)

Example 2 with TitleType

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);
    }
}
Also used : TitleType(org.olat.imsmd.xml.manifest.TitleType) GeneralType(org.olat.imsmd.xml.manifest.GeneralType)

Aggregations

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