/*
 * Copyright (c) 2005 Absolutely Training Limited
 * 
 * Created on 01-Dec-2005
 */
 
/* JSLint global function comment */
/*global TestUtils  */ 

/**
 * Translation of the Java RomanNumeralQuestion class into JavaScript
 * 
 * @author paulb
 */
function RomanNumeralQuestion( question, possibleAnswers ) {
    TestQuestion.call(this, question, possibleAnswers );
}

RomanNumeralQuestion.prototype = new TestQuestion(null, []);
RomanNumeralQuestion.prototype.constructor = RomanNumeralQuestion;


/**
 * Returns answer text of correct {@link AnswerChoice} object in string coded form.
 */
RomanNumeralQuestion.prototype.getEncodedCorrectAnswers = function() {
    for (var i = 0; i < this.answerChoices.length; i++ ) {
    	var ac = this.answerChoices[i];
        if (ac.isCorrect()) {
            return TestUtils.getNumericChoices( ac.getAnswerText() ); 
        }
    }
    return "";
};

