use of org.olat.imsmd.xml.manifest.TechnicalType in project OpenOLAT by OpenOLAT.
the class ManifestBuilder method createLom.
private static LomType createLom(boolean assessmentTest, boolean assessmentItem) {
LomType lom = mdObjectFactory.createLomType();
TechnicalType technical = mdObjectFactory.createTechnicalType();
if (assessmentTest) {
technical.getContent().add(createTechnicalFormat(ASSESSMENTTEST_MIMETYPE));
}
if (assessmentItem) {
technical.getContent().add(createTechnicalFormat(ASSESSMENTITEM_MIMETYPE));
}
return lom;
}
use of org.olat.imsmd.xml.manifest.TechnicalType in project openolat by klemens.
the class ManifestBuilder method createLom.
private static LomType createLom(boolean assessmentTest, boolean assessmentItem) {
LomType lom = mdObjectFactory.createLomType();
TechnicalType technical = mdObjectFactory.createTechnicalType();
if (assessmentTest) {
technical.getContent().add(createTechnicalFormat(ASSESSMENTTEST_MIMETYPE));
}
if (assessmentItem) {
technical.getContent().add(createTechnicalFormat(ASSESSMENTITEM_MIMETYPE));
}
return lom;
}
use of org.olat.imsmd.xml.manifest.TechnicalType in project openolat by klemens.
the class ManifestMetadataBuilder method getTechnical.
public TechnicalType getTechnical(boolean create) {
LomType lom = getLom(create);
if (lom == null)
return null;
TechnicalType technical = lom.getTechnical();
if (technical == null && create) {
technical = mdObjectFactory.createTechnicalType();
lom.setTechnical(technical);
}
return technical;
}
use of org.olat.imsmd.xml.manifest.TechnicalType in project OpenOLAT by OpenOLAT.
the class ManifestMetadataBuilder method getTechnical.
public TechnicalType getTechnical(boolean create) {
LomType lom = getLom(create);
if (lom == null)
return null;
TechnicalType technical = lom.getTechnical();
if (technical == null && create) {
technical = mdObjectFactory.createTechnicalType();
lom.setTechnical(technical);
}
return technical;
}
use of org.olat.imsmd.xml.manifest.TechnicalType in project OpenOLAT by OpenOLAT.
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]));
}
}
}
Aggregations