Search in sources :

Example 1 with DescriptionType

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

Example 2 with DescriptionType

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

Aggregations

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