use of org.olat.imsmd.xml.manifest.LomType in project OpenOLAT by OpenOLAT.
the class ManifestMetadataBuilder method getRights.
public RightsType getRights(boolean create) {
LomType lom = getLom(create);
if (lom == null)
return null;
RightsType rights = lom.getRights();
if (rights == null && create) {
rights = mdObjectFactory.createRightsType();
lom.setRights(rights);
}
return rights;
}
use of org.olat.imsmd.xml.manifest.LomType in project OpenOLAT by OpenOLAT.
the class ManifestMetadataBuilder method getGeneral.
public GeneralType getGeneral(boolean create) {
LomType lom = getLom(create);
if (lom == null)
return null;
GeneralType general = lom.getGeneral();
if (general == null && create) {
general = mdObjectFactory.createGeneralType();
lom.setGeneral(general);
}
return general;
}
use of org.olat.imsmd.xml.manifest.LomType in project OpenOLAT by OpenOLAT.
the class ManifestMetadataBuilder method getLifecycle.
public LifecycleType getLifecycle(boolean create) {
LomType lom = getLom(create);
if (lom == null)
return null;
LifecycleType lifecycle = lom.getLifecycle();
if (lifecycle == null && create) {
lifecycle = mdObjectFactory.createLifecycleType();
lom.setLifecycle(lifecycle);
}
return lifecycle;
}
use of org.olat.imsmd.xml.manifest.LomType in project OpenOLAT by OpenOLAT.
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 OpenOLAT.
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;
}
Aggregations