Package question

Examples of question.QuestionDetailsJson


              // This will find the group associationed with the question
              List<Group> group = myGroupTools.getTypeList(Table.Group, Column.id, myQuestions.getGroupId());
              String groupTitle = group.get(0).getGroupTitle();
             
              //for each question, create a new QuesitonJson via the QuesitonFactory
              QuestionDetailsJson questionJson = QuestionFactory.createQuestionDetailsJson(myQuestions, groupTitle);
             
              //insert QuestionJson into the QuestionJson[] for return
              questionArray[counter] = questionJson;
             
              counter++;
View Full Code Here


        {
          // Looping through to add the relevant info to the return array
          for(int i = 0; i < questionsList.size(); i++)
          {         
            // Instantiating the object QuestionDetailsJson at location i
            questionDetailsList[i] = new QuestionDetailsJson();
            // Copying the values from the questions list to the Json return objects list
            questionDetailsList[i].setCreateDate(questionsList.get(i).getCreateDate());
            questionDetailsList[i].setGroupId(questionsList.get(i).getGroupId());
            questionDetailsList[i].setId(questionsList.get(i).getId());
            questionDetailsList[i].setQuestionText(questionsList.get(i).getQuestionText());
View Full Code Here

              //this loop extracts all the questions from the list and creates a new QuestionJson for each.
              for (Iterator<Question> questionIterator = questionList.iterator(); questionIterator.hasNext();) {
                   Question myQuestions = questionIterator.next();
                  
                   //for each question, create a new QuesitonJson via the QuesitonFactory
                   QuestionDetailsJson questionJson = QuestionFactory.createQuestionDetailsJson(myQuestions);
                  
                   //insert QuestionJson into the QuestionJson[] for return
                   userQuestions[counter] = questionJson;
                  
                   counter++;
View Full Code Here

TOP

Related Classes of question.QuestionDetailsJson

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.