/**********************************************************************************
 * $URL: https://source.sakaiproject.org/svn/archive/tags/sakai_2-3-1/import-parsers/common-cartridge/src/java/org/sakaiproject/importer/impl/translators/CCAssessmentTranslator.java $
 * $Id: CCAssessmentTranslator.java 17765 2006-11-02 00:52:56Z lance@indiana.edu $
 ***********************************************************************************
 *
 * Copyright (c) 2006 The Sakai Foundation.
 * 
 * Licensed under the Educational Community License, Version 1.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at
 * 
 *      http://www.opensource.org/licenses/ecl1.php
 * 
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 *
 **********************************************************************************/

package org.sakaiproject.importer.impl.translators;

import org.sakaiproject.importer.api.IMSResourceTranslator;
import org.sakaiproject.importer.api.Importable;
import org.sakaiproject.importer.impl.importables.Assessment;
import org.w3c.dom.Document;
import org.w3c.dom.Node;

public class CCAssessmentTranslator implements IMSResourceTranslator {

	public String getTypeName() {
		return "imsqti_xmlv1p2/imscc_xmlv1p0/assessment";
	}

	public Importable translate(Node resourceNode, Document descriptor,
			String contextPath, String archiveBasePath) {
		Assessment rv = new Assessment();
		rv.setQti(descriptor);
		rv.setVersion("1.2");
		return rv;
	}

	public boolean processResourceChildren() {
		return false;
	}

}
