Search in sources :

Example 1 with ItemBodyGroup

use of uk.ac.ed.ph.jqtiplus.group.item.ItemBodyGroup in project OpenOLAT by OpenOLAT.

the class AssessmentItemFactory method appendDefaultItemBody.

/**
 * Append the itemBody with an empty paragraph.
 *
 * @param assessmentItem
 * @return
 */
public static ItemBody appendDefaultItemBody(AssessmentItem assessmentItem) {
    NodeGroupList nodeGroups = assessmentItem.getNodeGroups();
    // the single choice interaction
    ItemBodyGroup itemBodyGroup = nodeGroups.getItemBodyGroup();
    ItemBody itemBody = new ItemBody(assessmentItem);
    itemBodyGroup.setItemBody(itemBody);
    return itemBody;
}
Also used : ItemBodyGroup(uk.ac.ed.ph.jqtiplus.group.item.ItemBodyGroup) ItemBody(uk.ac.ed.ph.jqtiplus.node.content.ItemBody) NodeGroupList(uk.ac.ed.ph.jqtiplus.group.NodeGroupList)

Example 2 with ItemBodyGroup

use of uk.ac.ed.ph.jqtiplus.group.item.ItemBodyGroup in project openolat by klemens.

the class AssessmentItemFactory method appendDefaultItemBody.

/**
 * Append the itemBody with an empty paragraph.
 *
 * @param assessmentItem
 * @return
 */
public static ItemBody appendDefaultItemBody(AssessmentItem assessmentItem) {
    NodeGroupList nodeGroups = assessmentItem.getNodeGroups();
    // the single choice interaction
    ItemBodyGroup itemBodyGroup = nodeGroups.getItemBodyGroup();
    ItemBody itemBody = new ItemBody(assessmentItem);
    itemBodyGroup.setItemBody(itemBody);
    return itemBody;
}
Also used : ItemBodyGroup(uk.ac.ed.ph.jqtiplus.group.item.ItemBodyGroup) ItemBody(uk.ac.ed.ph.jqtiplus.node.content.ItemBody) NodeGroupList(uk.ac.ed.ph.jqtiplus.group.NodeGroupList)

Aggregations

NodeGroupList (uk.ac.ed.ph.jqtiplus.group.NodeGroupList)2 ItemBodyGroup (uk.ac.ed.ph.jqtiplus.group.item.ItemBodyGroup)2 ItemBody (uk.ac.ed.ph.jqtiplus.node.content.ItemBody)2