--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/org.w3c.css/cssvalidator-removed-src/error/ErrorReportFactory.java Wed Feb 24 13:24:53 2010 -0800
@@ -0,0 +1,30 @@
+// $Id: ErrorReportFactory.java,v 1.1 2005-07-22 09:45:01 ylafon Exp $
+// Author: Jean-Guilhem Rouel
+// (c) COPYRIGHT MIT, ERCIM and Keio, 2003.
+// Please first read the full copyright statement in file COPYRIGHT.html
+package org.w3c.css.error;
+
+import org.w3c.css.util.ApplContext;
+
+/**
+ * ErrorReportFactory<br />
+ * Created: Jul 13, 2005 2:00:54 PM<br />
+ */
+public class ErrorReportFactory {
+ /**
+ * Give back an "ErrorReport" object based on various parameters, but mainly
+ * output"
+ */
+ public static ErrorReport getErrorReport(ApplContext ac, String title,
+ String output, Exception e,
+ boolean validURI) {
+ if ((output == null) || (output.equals("html"))
+ || (output.equals("xhtml"))) {
+ return new ErrorReportHTML(ac, title, output, e);
+ }
+ if (output.equals("soap12")) {
+ return new ErrorReportSOAP12(ac, title, output, e, validURI);
+ }
+ return new ErrorReportHTML(ac, title, output, e);
+ }
+}