package com.tandbergtv.metadatamanager.validation.Schema;

import java.util.List;

import org.w3c.dom.Document;

import com.tandbergtv.metadatamanager.spec.IValidator;
import com.tandbergtv.metadatamanager.validation.ValidationError;

/**
 * Instances of this class will be are to validate a document against the
 * specified schema file.
 * 
 * There are issues regarding the report that will be returned. Hence delaying
 * this implementation. Needs more research on this.
 * 
 * @author spuranik
 * 
 */
public class SchemaValidator implements IValidator {

	/* name of this validator instance. */
	private String name;

	/*
	 * schema resource which will be used by this instance to validate the
	 * supplied document.
	 */
	private String schemaResource;

	/**
	 * @return the schemaResource
	 */
	public String getSchemaResource() {
		return schemaResource;
	}

	public String getName() {
		return name;
	}

	public SchemaValidator(String name, String schemaResource) {
		this.name = name;
		this.schemaResource = schemaResource;
	}

	public List<ValidationError> validate(Document doc) {
		throw new RuntimeException("Operation not yet implemented.");
	}

}
