use of uk.ac.ed.ph.jqtiplus.node.content.basic.BlockStatic in project OpenOLAT by OpenOLAT.
the class HottextAssessmentItemBuilder method extractHottextInteraction.
private void extractHottextInteraction() {
try (StringOutput sb = new StringOutput()) {
List<Block> blocks = assessmentItem.getItemBody().getBlocks();
for (Block block : blocks) {
if (block instanceof HottextInteraction) {
hottextInteraction = (HottextInteraction) block;
for (BlockStatic innerBlock : hottextInteraction.getBlockStatics()) {
serializeJqtiObject(innerBlock, sb);
}
responseIdentifier = hottextInteraction.getResponseIdentifier();
break;
}
}
question = sb.toString();
} catch (IOException e) {
log.error("", e);
}
}
use of uk.ac.ed.ph.jqtiplus.node.content.basic.BlockStatic in project openolat by klemens.
the class HottextAssessmentItemBuilder method extractHottextInteraction.
private void extractHottextInteraction() {
try (StringOutput sb = new StringOutput()) {
List<Block> blocks = assessmentItem.getItemBody().getBlocks();
for (Block block : blocks) {
if (block instanceof HottextInteraction) {
hottextInteraction = (HottextInteraction) block;
for (BlockStatic innerBlock : hottextInteraction.getBlockStatics()) {
serializeJqtiObject(innerBlock, sb);
}
responseIdentifier = hottextInteraction.getResponseIdentifier();
break;
}
}
question = sb.toString();
} catch (IOException e) {
log.error("", e);
}
}
Aggregations