01: package com.sun.tools.jxc.gen.config;
02:
03: import org.xml.sax.Attributes;
04: import org.xml.sax.SAXException;
05:
06: /**
07: *
08: *
09: * @author Kohsuke Kawaguchi (kk@kohsuke.org)
10: */
11: public interface NGCCEventSource {
12: /**
13: * Replaces an old handler with a new handler, and returns
14: * ID of the EventReceiver thread.
15: */
16: int replace(NGCCEventReceiver _old, NGCCEventReceiver _new);
17:
18: /** Sends an enter element event to the specified EventReceiver thread. */
19: void sendEnterElement(int receiverThreadId, String uri,
20: String local, String qname, Attributes atts)
21: throws SAXException;
22:
23: void sendLeaveElement(int receiverThreadId, String uri,
24: String local, String qname) throws SAXException;
25:
26: void sendEnterAttribute(int receiverThreadId, String uri,
27: String local, String qname) throws SAXException;
28:
29: void sendLeaveAttribute(int receiverThreadId, String uri,
30: String local, String qname) throws SAXException;
31:
32: void sendText(int receiverThreadId, String value)
33: throws SAXException;
34: }
|