Commits

Vinay Augustine committed 43e6ceb

Added Xerces 2 failure code to mercurial repository.

  • Participants

Comments (0)

Files changed (4)

+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>xerces2failures</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

File .settings/org.eclipse.jdt.core.prefs

+#Sun Jan 23 15:59:52 EST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.3

File src/net/vja2/research/xerces2/Failure.java

+/*
+ * Failure.java
+ *
+ * Created on September 18, 2007, 3:39 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package net.vja2.research.xerces2;
+
+/**
+ *
+ * @author vja2
+ */
+public class Failure {
+    
+    /** Creates a new instance of Failure */
+    public static int F6138 = 0;
+    public static int F6165 = 1;
+    public static int F6317 = 2;
+    public static int F6482 = 3;
+    public static int F6716 = 4;
+    public static int F6845 = 5;
+    public static int F6911 = 6;
+    public static int F7075 = 7;
+    
+    public static String[] names;
+    public static int count[] = new int[8];
+    
+    static {
+        names = new String[] {
+            "XERCES6138",
+            "XERCES6165",
+            "XERCES6317",
+            "XERCES6482",
+            "XERCES6716",
+            "XERCES6845",
+            "XERCES6911",
+            "XERCES7075"
+        };
+    }
+    public static void init()
+    {
+        for(int i = 0; i < 8; i++)
+            count[i] = 0;
+    }
+    
+    public static void failed(int failureId)
+    {
+        count[failureId]++;
+    }
+    
+    public static void reset()
+    {
+        for(int i = 0; i < 8; i++)
+            Failure.count[i] = 0;
+    }
+}