org.w3c.css/cssvalidator-removed-src/css/StyleReportFactory.java
author Eugene Ostroukhov <eugeneo@symbian.org>
Wed, 24 Feb 2010 13:24:53 -0800
changeset 191 61c04b3eb3e7
permissions -rw-r--r--
Bug 2001 - css validator to separate plug-in

// $Id: StyleReportFactory.java,v 1.10 2007-07-30 11:40:04 julien Exp $
// Author: Yves Lafon <ylafon@w3.org>
// (c) COPYRIGHT MIT, ERCIM and Keio, 2003.
// Please first read the full copyright statement in file COPYRIGHT.html

package org.w3c.css.css;

import org.w3c.css.util.ApplContext;

public class StyleReportFactory {

	/**
	 * Give back a "StyleReport" object based on various parameters, but mainly
	 * output"
	 */
	public static StyleReport getStyleReport(ApplContext ac, String title, StyleSheet style, String document,
			int warningLevel) {
		String output = (StyleSheetGenerator.isAvailableFormat(document)) ? document : "xhtml";
		return new StyleSheetGenerator(ac, title, style, output, warningLevel);
	}
}