/*
 * Copyright (c) 2005 Absolutely Training Limited
 * 
 * Created on 01-Dec-2005
 */
/**
 * Translation of the Java ReportLine class into JavaScript
 * 
 * @author paulb
 */
 
function ReportLine( contentObjectId, section, totalAmountOfQuestions, correctQuestions,
        correctQuestionsPercent, assessment, level) {
    this.contentObjectId = contentObjectId;
    this.section = section;
    this.totalAmountOfQuestions = totalAmountOfQuestions;
    this.correctQuestions = correctQuestions;
    this.correctQuestionsPercent = correctQuestionsPercent;
    this.assessment = assessment;
    this.level = level;
}

ReportLine.prototype.getAssessment = function() {
    return this.assessment;
};

ReportLine.prototype.getCorrectQuestions = function() {
    return this.correctQuestions;
};

ReportLine.prototype.getCorrectQuestionsPercent = function() {
    return this.correctQuestionsPercent;
};

ReportLine.prototype.getSection = function() {
    var indent = "";
    for (var i = 0; i < this.level; i++) {
        indent += "&nbsp;";
    }
    return indent + this.section;
};

ReportLine.prototype.getTotalAmountOfQuestions = function() {
    return this.totalAmountOfQuestions;
};

ReportLine.prototype.getLevel = function() {
    return this.level;
};

ReportLine.prototype.getContentObjectId = function() {
    return this.contentObjectId;
};
