/*
 * Copyright (c) 2005 Absolutely Training Limited
 *  
 * Created on 07-Feb-2005
 */

 // constructor

function Correct_responses(){
	this.pattern=null;
        
        this.saveAttemptArray = new Array("pattern");

        this.propertiesArray = new Array("pattern");
	this.objectsArray = null;

	this.validator = new Validator();
}

// create and discard an initial Object to force the prototype object to be
// created in Navigator 3.

new Correct_responses();                    
Correct_responses.prototype = new RTEDataObject();
Correct_responses.prototype.constructor = Correct_responses;
    /**
     * @param pattern The pattern to set.
     */
     
    // TODO this needs validation
    
    Correct_responses.prototype.setPattern = function(pattern) {
    	if (this.validator.validatePattern(pattern)){
	        this.pattern = pattern;
			return VariableInfo.NO_SET_ERROR;
		}
		return VariableInfo.ERROR_406;
		
    };         