1 package sk.stuba.fiit.foo07.genex.beans; 2 3 import java.util.ArrayList; 4 5 public class ExportQuestion { 6 public Integer QuestionID; 7 public String text; 8 public String points; 9 public String pointsFloat; 10 public ArrayList<ExportAnswer> answerList; 11 public ArrayList<ExportPicture> pictureList; 12 public boolean hasNoAnswers = false; 13 14 public ExportQuestion(Integer QuestionID, String text, String points, 15 String pointsFloat, ArrayList<ExportAnswer> answers, 16 ArrayList<ExportPicture> pictureList) { 17 this.QuestionID = QuestionID; 18 this.text = text; 19 this.points = points; 20 this.pointsFloat = pointsFloat; 21 this.answerList = answers; 22 this.pictureList = pictureList; 23 hasNoAnswers = answers.isEmpty(); 24 } 25 26 public String getTEXT() { 27 return text; 28 } 29 30 public void setTEXT(String text) { 31 this.text = text; 32 } 33 34 public String getPOINTS() { 35 return points; 36 } 37 38 public void setPOINTS(String points) { 39 this.points = points; 40 } 41 42 public ArrayList<ExportAnswer> getANSWERLIST() { 43 return answerList; 44 } 45 46 public void setANSWERLIST(ArrayList<ExportAnswer> ansList) { 47 this.answerList = ansList; 48 } 49 50 public ArrayList<ExportPicture> getPICTURELIST() { 51 return pictureList; 52 } 53 54 public void setPICTURELIST(ArrayList<ExportPicture> pictureList) { 55 this.pictureList = pictureList; 56 } 57 58 public boolean getHASNOANSWERS() { 59 return hasNoAnswers; 60 } 61 62 public Integer getQuestionID() { 63 return QuestionID; 64 } 65 66 public void setQuestionID(Integer questionID) { 67 QuestionID = questionID; 68 } 69 70 public String getPOINTSFLOAT() { 71 return pointsFloat; 72 } 73 74 public void setPointsFloat(String pointsFloat) { 75 this.pointsFloat = pointsFloat; 76 } 77 78 }