Search in sources :

Example 11 with LomType

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

the class ManifestMetadataBuilder method getLom.

public LomType getLom(boolean create) {
    LomType lom = getFromAny(LomType.class, getMetadataList());
    if (lom == null && create) {
        lom = mdObjectFactory.createLomType();
        getMetadataList().add(mdObjectFactory.createLom(lom));
    }
    return lom;
}
Also used : LomType(org.olat.imsmd.xml.manifest.LomType)

Example 12 with LomType

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

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

Example 13 with LomType

use of org.olat.imsmd.xml.manifest.LomType in project OpenOLAT by OpenOLAT.

the class ManifestMetadataBuilder method getLom.

public LomType getLom(boolean create) {
    LomType lom = getFromAny(LomType.class, getMetadataList());
    if (lom == null && create) {
        lom = mdObjectFactory.createLomType();
        getMetadataList().add(mdObjectFactory.createLom(lom));
    }
    return lom;
}
Also used : LomType(org.olat.imsmd.xml.manifest.LomType)

Example 14 with LomType

use of org.olat.imsmd.xml.manifest.LomType 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;
}
Also used : TechnicalType(org.olat.imsmd.xml.manifest.TechnicalType) LomType(org.olat.imsmd.xml.manifest.LomType)

Example 15 with LomType

use of org.olat.imsmd.xml.manifest.LomType in project OpenOLAT by OpenOLAT.

the class ManifestMetadataBuilder method getEducational.

public EducationalType getEducational(boolean create) {
    LomType lom = getLom(create);
    if (lom == null)
        return null;
    EducationalType educational = lom.getEducational();
    if (educational == null && create) {
        educational = mdObjectFactory.createEducationalType();
        lom.setEducational(educational);
    }
    return educational;
}
Also used : EducationalType(org.olat.imsmd.xml.manifest.EducationalType) LomType(org.olat.imsmd.xml.manifest.LomType)

Aggregations

LomType (org.olat.imsmd.xml.manifest.LomType)20 ManifestMetadataType (org.olat.imscp.xml.manifest.ManifestMetadataType)4 TechnicalType (org.olat.imsmd.xml.manifest.TechnicalType)4 ClassificationType (org.olat.imsmd.xml.manifest.ClassificationType)2 EducationalType (org.olat.imsmd.xml.manifest.EducationalType)2 GeneralType (org.olat.imsmd.xml.manifest.GeneralType)2 LifecycleType (org.olat.imsmd.xml.manifest.LifecycleType)2 PurposeType (org.olat.imsmd.xml.manifest.PurposeType)2 RightsType (org.olat.imsmd.xml.manifest.RightsType)2