package exercise.writer; import java.lang.*; /** * This is the base class meant to be extended that provides functionality that every * content class should share. This is to be used as a storage class setting and getting * particular parameters. * @author Grant K. Olds * @since JDK1.2 */ public class QuestionContents { protected String section; protected String exercise; protected String question; protected String hint; //Contructor for this class QuestionContents() { } /** * Gets the exercise number * @return the number as a string null string otherwise. */ public String getExercise() { return exercise; } /** * Gets the section number * @return the section as a string null string otherwise. */ public String getSection() { return section; } /** * Gets the question string * @return the question. null string otherwise. */ public String getQuestion() { return question; } /** * Gets the hint string * @return the question. null string otherwise. */ public String getHint() { return hint; } /** * Sets the exercise string * @param exercise the String that is read in for the exercise number. */ public void setExercise(String exercise) { this.exercise = exercise; } /** * Sets the question string * @param exercise the String that is read in for the question. */ public void setQuestion(String question) { this.question = question; } /** * Sets the section string * @param exercise the String that is read in for the question. */ public void setSection(String section) { this.section = section; } /** * Sets the hint string * @param hint the String that is read in for the question. */ public void setHint( String hint ) { this.hint = hint; } }