aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc/policyprocessor/myHandler.java
diff options
context:
space:
mode:
authorsmh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk>2005-06-20 22:33:35 +0000
committersmh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk>2005-06-20 22:33:35 +0000
commitf21629e0cc48365033a387706844c140175e1708 (patch)
treefa157cd55451369f557d4ca76f9878fa0819ef47 /tools/misc/policyprocessor/myHandler.java
parent198553df06c9ff77a7aada2451522f05c51b77a9 (diff)
downloadxen-f21629e0cc48365033a387706844c140175e1708.tar.gz
xen-f21629e0cc48365033a387706844c140175e1708.tar.bz2
xen-f21629e0cc48365033a387706844c140175e1708.zip
bitkeeper revision 1.1718.1.9 (42b7443fk-ybxUDza1p_kN1D8hzjRw)
Many files: new file
Diffstat (limited to 'tools/misc/policyprocessor/myHandler.java')
-rw-r--r--tools/misc/policyprocessor/myHandler.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/tools/misc/policyprocessor/myHandler.java b/tools/misc/policyprocessor/myHandler.java
new file mode 100644
index 0000000000..b972c20605
--- /dev/null
+++ b/tools/misc/policyprocessor/myHandler.java
@@ -0,0 +1,47 @@
+/**
+ * (C) Copyright IBM Corp. 2005
+ *
+ * $Id: myHandler.java,v 1.2 2005/06/17 20:00:04 rvaldez Exp $
+ *
+ * Author: Ray Valdez
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, version 2 of the
+ * License.
+ *
+ * myHandler Class.
+ *
+ * <p>
+ *
+ * A dummy class used for detecting XML validating/parsing errors.
+ *
+ * <p>
+ *
+ *
+ */
+import org.xml.sax.helpers.*;
+import org.xml.sax.SAXParseException;
+
+class myHandler extends DefaultHandler
+{
+ public boolean isValid = true;
+
+ /* Notification of a recoverable error. */
+ public void error(SAXParseException se)
+ {
+ isValid = false;
+ }
+
+ /* Notification of a non-recoverable error. */
+ public void fatalError(SAXParseException se)
+ {
+ isValid = false;
+ }
+
+ /* Notification of a warning. */
+ public void warning(SAXParseException se)
+ {
+ isValid = false;
+ }
+}