use of org.olat.imsmd.xml.manifest.LomType 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.LomType 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.LomType in project openolat by klemens.
the class ManifestBuilder method createAssessmentItemBuilder.
/**
* Create a manifest with some metadata specific to the
* assessment item.
*
* @return
*/
public static ManifestBuilder createAssessmentItemBuilder() {
ManifestBuilder builder = new ManifestBuilder();
// schema
ManifestMetadataType metadataType = createManifestMetadataType();
builder.manifest.setMetadata(metadataType);
// lom technical
LomType lom = createLom(false, true);
metadataType.getAny().add(mdObjectFactory.createLom(lom));
return builder;
}
use of org.olat.imsmd.xml.manifest.LomType in project openolat by klemens.
the class ManifestBuilder method createAssessmentTestBuilder.
/**
* Create a manifest with some metadata specific to the
* assessment test.
*
* @return
*/
public static ManifestBuilder createAssessmentTestBuilder() {
ManifestBuilder builder = new ManifestBuilder();
// schema
ManifestMetadataType metadataType = createManifestMetadataType();
metadataType.setSchema("QTIv2.1 Package");
metadataType.setSchemaversion("1.0.0");
builder.manifest.setMetadata(metadataType);
// lom technical
LomType lom = createLom(true, true);
metadataType.getAny().add(mdObjectFactory.createLom(lom));
return builder;
}
use of org.olat.imsmd.xml.manifest.LomType 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;
}
Aggregations