/*
 * Copyright (c) 2005 Absolutely Training Limited
 * 
 * Created on 01-Dec-2005
 */
/**
 * Translation of the Java AnswerChoice class into JavaScript
 * 
 * @author paulb
 */
function AnswerChoice( answerText, correct, explanation ) {

    this.answerText = answerText;
    this.correct = correct;
    this.explanation = explanation;
    this.letter = " ";
    this.selected = false;
    this.testAnswers = new Array();
}

AnswerChoice.prototype.getAnswerText = function() {
    return this.answerText;
};

AnswerChoice.prototype.isCorrect = function() {
    return this.correct;
};

AnswerChoice.prototype.isSelected = function() {
    return this.selected;
};
    
AnswerChoice.prototype.setSelected = function(selected) {
    this.selected = selected;
};

AnswerChoice.prototype.getLetter = function() {
    return this.letter;
};
    
AnswerChoice.prototype.setLetter = function(letter) {
    this.letter = letter;
};
    
AnswerChoice.prototype.getExplanation = function() {
    return this.explanation;
};
 
AnswerChoice.prototype.getTestAnswers = function() {
    return this.testAnswers;
};
    
AnswerChoice.prototype.setTestAnswers = function(testAnswers) {
    this.testAnswers = testAnswers;
};
    
    
