Search in sources :

Example 6 with TechnicalType

use of org.olat.imsmd.xml.manifest.TechnicalType in project openolat by klemens.

the class ManifestMetadataBuilder method setTechnicalFormat.

public void setTechnicalFormat(String... formats) {
    if (formats != null && formats.length > 0 && formats[0] != null) {
        TechnicalType technical = getTechnical(true);
        clearFromAny("format", technical.getContent());
        for (int i = 0; i < formats.length; i++) {
            technical.getContent().add(mdObjectFactory.createFormat(formats[i]));
        }
    }
}
Also used : TechnicalType(org.olat.imsmd.xml.manifest.TechnicalType)

Aggregations

TechnicalType (org.olat.imsmd.xml.manifest.TechnicalType)6 LomType (org.olat.imsmd.xml.manifest.LomType)4