package exercise.writer; import java.lang.*; /** * MulitipleChoiceContents houses the data read in from the MultipleChoice Entry parser * @author Grant K. Olds * @since JDK1.2 */ public class MultipleChoiceContents extends QuestionContents { static final int A = 0; static final int B = 1; static final int C = 2; static final int D = 3; static final int E = 4; static final int F = 5; static final int G = 6; static final int H = 7; static final int I = 8; static final int J = 9; private String [] choiceArray; private String [] feedbackArray; private String correctFeedback; private int [] answerArray; MultipleChoiceContents() { super(); } /** * Returns the correct Feedback * @return the correct Feedback null string otherwise. */ public String getCorrectFeedback() { return correctFeedback; } /** * Returns the choiceArray * @return the choice Array null string array otherwise. */ public String [] getChoiceArray() { return choiceArray; } /** * Returns the feedback Array * @return the feedback string array null string array otherwise. */ public String [] getFeedbackArray() { return feedbackArray; } /** * Returns the answer Array * @return the answer array null int array otherwise. */ public int [] getAnswerArray() { return answerArray; } /** * Sets the choice Array * @param choiceArray the String array that is read in for the choice Array. */ public void setChoiceArray ( String [] choiceArray ) { this.choiceArray = choiceArray; } /** * Sets the choice Array * @param choiceArray the String array that is read in for the choice Array. */ public void setCorrectFeedback ( String correctFeedback ) { this.correctFeedback = correctFeedback; } /** * Sets the feedback Array * @param feedbackArray the String array that is read in for the choice Array. */ public void setFeedbackArray ( String [] feedbackArray ) { this.feedbackArray = feedbackArray; } /** * Sets the answer Array * @param answerArray the String array that is read in for the choice Array. */ public void setAnswerArray ( int [] answerArray ) { this.answerArray = answerArray; } }