Set misItemText = itemData.getItemTextSet();
Set misItemText = itemData.getItemTextSet();
/** * This is a very important constructor. Please make sure that you have * set all the properties (declared above as private) of ItemFacade using * the "data" supplied. "data" is a org.osid.assessment.Item properties * and I use it to store info about an item. * @param data */ public ItemFacade(ItemDataIfc data){ this.data = data; ItemImpl itemImpl = new ItemImpl(); // place holder item = (Item)itemImpl; try { item.updateData(this.data); } catch (AssessmentException ex) { throw new DataFacadeException(ex.getMessage()); } this.id = getId(); this.description = getDescription(); this.itemType = getItemType(); this.itemTextSet = getItemTextSet(); this.itemMetaDataSet = getItemMetaDataSet(); this.itemTagSet = getItemTagSet(); this.itemFeedbackSet = getItemFeedbackSet(); this.hasRationale= data.getHasRationale();//rshastri :SAK-1824 this.itemAttachmentSet = getItemAttachmentSet(); this.answerOptionsRichCount = getAnswerOptionsRichCount(); this.answerOptionsSimpleOrRich = getAnswerOptionsSimpleOrRich(); }
/** * This is a very important constructor. Please make sure that you have * set all the properties (declared above as private) of ItemFacade using * the "data" supplied. "data" is a org.osid.assessment.Item properties * and I use it to store info about an item. * @param data */ public ItemFacade(ItemDataIfc data){ this.data = data; ItemImpl itemImpl = new ItemImpl(); // place holder item = (Item)itemImpl; try { item.updateData(this.data); } catch (AssessmentException ex) { throw new DataFacadeException(ex.getMessage()); } this.id = getId(); this.description = getDescription(); this.itemType = getItemType(); this.itemTextSet = getItemTextSet(); this.itemMetaDataSet = getItemMetaDataSet(); this.itemTagSet = getItemTagSet(); this.itemFeedbackSet = getItemFeedbackSet(); this.hasRationale= data.getHasRationale();//rshastri :SAK-1824 this.itemAttachmentSet = getItemAttachmentSet(); this.answerOptionsRichCount = getAnswerOptionsRichCount(); this.answerOptionsSimpleOrRich = getAnswerOptionsSimpleOrRich(); }