Set correctAnswerIDs = importableQuestion.getCorrectAnswerIDs(); itemFacade = new ItemFacade(); itemFacade.setTypeId(new Long(importableQuestion.getQuestionType())); textSet = new HashSet(); questionTextString = contextualizeUrls(importableQuestion.getQuestionText(), siteId); if (importableQuestion.getQuestionType() == SamigoPoolHandler.MATCHING) { itemFacade.setInstruction(questionTextString); Collection answers = importableQuestion.getAnswers().values(); if (importableQuestion.getQuestionType() == SamigoPoolHandler.TRUE_FALSE) { } else if (importableQuestion.getQuestionType() == SamigoPoolHandler.FILL_BLANK_PLUS) { answer.setText(importableAnswer.getAnswerText()); Pattern pattern = Pattern.compile("_+|<<.*>>"); text.setText(questionTextString); itemFacade.setTypeId(Long.valueOf(SamigoPoolHandler.FILL_BLANK)); } else if (importableQuestion.getQuestionType() == SamigoPoolHandler.FILL_BLANK) { if (j.hasNext()) continue; answer.setText(answerBuffer.toString()); itemFacade.setCorrectItemFeedback(importableQuestion.getFeedbackWhenCorrect()); itemFacade.setInCorrectItemFeedback(importableQuestion.getFeedbackWhenIncorrect()); itemFacade.setTypeId(Long.valueOf(importableQuestion.getQuestionType())); itemFacade.setScore(importableQuestion.getPointValue()); itemFacade.setSequence(importableQuestion.getPosition());
Set correctAnswerIDs = importableQuestion.getCorrectAnswerIDs(); itemFacade = new ItemFacade(); itemFacade.setTypeId(new Long(importableQuestion.getQuestionType())); textSet = new HashSet(); questionTextString = contextualizeUrls(importableQuestion.getQuestionText(), siteId); if (importableQuestion.getQuestionType() == SamigoPoolHandler.MATCHING) { itemFacade.setInstruction(questionTextString); Collection answers = importableQuestion.getAnswers().values(); if (importableQuestion.getQuestionType() == SamigoPoolHandler.TRUE_FALSE) { } else if (importableQuestion.getQuestionType() == SamigoPoolHandler.FILL_BLANK_PLUS) { answer.setText(importableAnswer.getAnswerText()); Pattern pattern = Pattern.compile("_+|<<.*>>"); text.setText(questionTextString); itemFacade.setTypeId(Long.valueOf(SamigoPoolHandler.FILL_BLANK)); } else if (importableQuestion.getQuestionType() == SamigoPoolHandler.FILL_BLANK) { if (j.hasNext()) continue; answer.setText(answerBuffer.toString());