33 import org.xml.sax.Attributes;
34 import org.xml.sax.ContentHandler;
35 import org.xml.sax.Locator;
36 import org.xml.sax.SAXException;
37 import org.xml.sax.SAXParseException;
38
39 /**
40 * Runtime Engine for RELAXNGCC execution.
41 *
42 * This class has the following functionalities:
43 *
44 * <ol>
45 * <li>Managing a stack of NGCCHandler objects and
46 * switching between them appropriately.
47 *
48 * <li>Keep track of all Attributes.
49 *
50 * <li>manage mapping between namespace URIs and prefixes.
51 *
52 * <li>TODO: provide support for interleaving.
53 *
54 * @version $Id: NGCCRuntime.java,v 1.15 2002/09/29 02:55:48 okajima Exp $
55 * @author Kohsuke Kawaguchi (kk@kohsuke.org)
56 */
57 public class NGCCRuntime implements ContentHandler, NGCCEventSource {
58
59 public NGCCRuntime() {
60 reset();
61 }
62
63 /**
64 * Sets the root handler, which will be used to parse the
65 * root element.
66 * <p>
67 * This method can be called right after the object is created
68 * or the reset method is called. You can't replace the root
69 * handler while parsing is in progress.
70 * <p>
71 * Usually a generated class that corresponds to the <start>
72 * pattern will be used as the root handler, but any NGCCHandler
73 * can be a root handler.
|
33 import org.xml.sax.Attributes;
34 import org.xml.sax.ContentHandler;
35 import org.xml.sax.Locator;
36 import org.xml.sax.SAXException;
37 import org.xml.sax.SAXParseException;
38
39 /**
40 * Runtime Engine for RELAXNGCC execution.
41 *
42 * This class has the following functionalities:
43 *
44 * <ol>
45 * <li>Managing a stack of NGCCHandler objects and
46 * switching between them appropriately.
47 *
48 * <li>Keep track of all Attributes.
49 *
50 * <li>manage mapping between namespace URIs and prefixes.
51 *
52 * <li>TODO: provide support for interleaving.
53 * <p><b>
54 * Auto-generated, do not edit.
55 * </b></p>
56 * @version $Id: NGCCRuntime.java,v 1.15 2002/09/29 02:55:48 okajima Exp $
57 * @author Kohsuke Kawaguchi (kk@kohsuke.org)
58 */
59 public class NGCCRuntime implements ContentHandler, NGCCEventSource {
60
61 public NGCCRuntime() {
62 reset();
63 }
64
65 /**
66 * Sets the root handler, which will be used to parse the
67 * root element.
68 * <p>
69 * This method can be called right after the object is created
70 * or the reset method is called. You can't replace the root
71 * handler while parsing is in progress.
72 * <p>
73 * Usually a generated class that corresponds to the <start>
74 * pattern will be used as the root handler, but any NGCCHandler
75 * can be a root handler.
|