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;
}
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;
}
Aggregations