Search in sources :

Example 1 with TypicallearningtimeType

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

the class ManifestMetadataBuilder method setEducationalLearningTime.

public void setEducationalLearningTime(String datetime) {
    EducationalType educational = getEducational(true);
    if (educational != null) {
        TypicallearningtimeType type = getFromAny(TypicallearningtimeType.class, educational.getContent());
        if (type == null) {
            type = mdObjectFactory.createTypicallearningtimeType();
            educational.getContent().add(mdObjectFactory.createTypicallearningtime(type));
        }
        type.setDatetime(datetime);
    }
}
Also used : TypicallearningtimeType(org.olat.imsmd.xml.manifest.TypicallearningtimeType) EducationalType(org.olat.imsmd.xml.manifest.EducationalType)

Example 2 with TypicallearningtimeType

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

the class ManifestMetadataBuilder method setEducationalLearningTime.

public void setEducationalLearningTime(String datetime) {
    EducationalType educational = getEducational(true);
    if (educational != null) {
        TypicallearningtimeType type = getFromAny(TypicallearningtimeType.class, educational.getContent());
        if (type == null) {
            type = mdObjectFactory.createTypicallearningtimeType();
            educational.getContent().add(mdObjectFactory.createTypicallearningtime(type));
        }
        type.setDatetime(datetime);
    }
}
Also used : TypicallearningtimeType(org.olat.imsmd.xml.manifest.TypicallearningtimeType) EducationalType(org.olat.imsmd.xml.manifest.EducationalType)

Aggregations

EducationalType (org.olat.imsmd.xml.manifest.EducationalType)2 TypicallearningtimeType (org.olat.imsmd.xml.manifest.TypicallearningtimeType)2