public String getEmiAnswerOptionLabels() { String emiAnswerOptionLabels = null; if (TypeD.EXTENDED_MATCHING_ITEMS.equals(getTypeId())) { if (getIsAnswerOptionsSimple()) { emiAnswerOptionLabels = ""; if (getEmiAnswerOptions() != null) { Iterator<AnswerIfc> iter = getEmiAnswerOptions().iterator(); while (iter.hasNext()) { AnswerIfc answer = iter.next(); emiAnswerOptionLabels += answer.getLabel(); } } } else { // Rich emiAnswerOptionLabels = ItemDataIfc.ANSWER_OPTION_LABELS.substring(0, getAnswerOptionsRichCount().intValue()); } } return emiAnswerOptionLabels; }
public String getEmiAnswerOptionLabels() { String emiAnswerOptionLabels = null; if (TypeD.EXTENDED_MATCHING_ITEMS.equals(getTypeId())) { if (getIsAnswerOptionsSimple()) { emiAnswerOptionLabels = ""; if (getEmiAnswerOptions() != null) { Iterator<AnswerIfc> iter = getEmiAnswerOptions().iterator(); while (iter.hasNext()) { AnswerIfc answer = iter.next(); emiAnswerOptionLabels += answer.getLabel(); } } } else { // Rich emiAnswerOptionLabels = ItemDataIfc.ANSWER_OPTION_LABELS.substring(0, getAnswerOptionsRichCount().intValue()); } } return emiAnswerOptionLabels; }
publishedItem.setItemFeedbackSet(publishedItemFeedbackSet); publishedItem.setItemAttachmentSet(publishedItemAttachmentSet); publishedItem.setAnswerOptionsRichCount(item.getAnswerOptionsRichCount()); publishedItem.setAnswerOptionsSimpleOrRich(item.getAnswerOptionsSimpleOrRich());
newItem.setItemFeedbackSet(newItemFeedbackSet); newItem.setItemAttachmentSet(newItemAttachmentSet); newItem.setAnswerOptionsRichCount(item.getAnswerOptionsRichCount()); newItem.setAnswerOptionsSimpleOrRich(item.getAnswerOptionsSimpleOrRich()); h.add(newItem);
publishedItem.setItemFeedbackSet(publishedItemFeedbackSet); publishedItem.setItemAttachmentSet(publishedItemAttachmentSet); publishedItem.setAnswerOptionsRichCount(item.getAnswerOptionsRichCount()); publishedItem.setAnswerOptionsSimpleOrRich(item.getAnswerOptionsSimpleOrRich());
newItem.setItemFeedbackSet(newItemFeedbackSet); newItem.setItemAttachmentSet(newItemAttachmentSet); newItem.setAnswerOptionsRichCount(item.getAnswerOptionsRichCount()); newItem.setAnswerOptionsSimpleOrRich(item.getAnswerOptionsSimpleOrRich()); h.add(newItem);